APKBUILD 1.27 KB
Newer Older
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=print-manager
4
pkgver=19.12.0
5
pkgrel=0
6
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
7 8 9 10
url="https://www.kde.org/applications/utilities/"
pkgdesc="A tool for managing print jobs and printers"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev cups-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev kiconthemes-dev ki18n-dev kcmutils-dev kio-dev knotifications-dev plasma-framework-dev kwidgetsaddons-dev kwindowsystem-dev"
11
source="https://download.kde.org/stable/release-service/$pkgver/src/print-manager-$pkgver.tar.xz"
12 13 14
subpackages="$pkgname-lang"
options="!check" # No tests available

15 16 17 18 19 20
prepare() {
	default_prepare

	mkdir "$builddir"/build
}

21
build() {
22 23
	cd "$builddir"/build
	cmake "$builddir" \
24 25 26 27 28 29 30
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
31
	cd "$builddir"/build
32 33 34 35
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
36
	cd "$builddir"/build
37 38 39
	DESTDIR="$pkgdir" make install
}

40
sha512sums="88c30d81521de51da98c04a2c3a2584975376f14771169a95df9f9f1635a39a19eaef3c94e44bca44857af8b7de11b6e2ef159562cadb4cbc57ec7cce7914f48  print-manager-19.12.0.tar.xz"