pmaports/kde/polkit-qt/APKBUILD

36 lines
1 KiB
Text
Raw Normal View History

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=polkit-qt
pkgver=0.112.0_git20160416
pkgrel=0
_commit="50624e06e88aabd7ae123ad6a4495630f81cd706"
pkgdesc="A library that allows developers to access PolicyKit API with a nice Qt-style API"
arch="all"
url="https://www.kde.org"
license="LGPL-2.1"
depends="polkit"
depends_dev="qt5-qtbase-dev"
makedepends="$depends_dev cmake automoc4 polkit-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/kde/$pkgname-1/archive/$_commit.tar.gz"
subpackages="$pkgname-dev $pkgname-dev"
builddir="$srcdir/$pkgname-1-$_commit"
build() {
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_DESTINATION=/usr/lib
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="${pkgdir}" install
}
sha512sums="254e2086492eda93e85a30713681a1cee3eda0889750d854c9cbd920dcc1c0a94933ad230dab3e2bb9bcdbc2f4236844a6dbdf0ad6cd8a90f99e24f0d13639ef polkit-qt-0.112.0_git20160416.tar.gz"