diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-27 21:21:45 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-27 21:21:45 -0500 |
commit | 8fd37448e98f170ef02f21774231669297d99664 (patch) | |
tree | a99f5e4c7e6af458581cf043b738e50ded2844db /user/polkit-qt-1/APKBUILD | |
parent | 7dc039499d3c38cae6e610695179458a4b56c436 (diff) | |
download | packages-8fd37448e98f170ef02f21774231669297d99664.tar.gz packages-8fd37448e98f170ef02f21774231669297d99664.tar.bz2 packages-8fd37448e98f170ef02f21774231669297d99664.tar.xz packages-8fd37448e98f170ef02f21774231669297d99664.zip |
user/polkit-qt-1: new package
Diffstat (limited to 'user/polkit-qt-1/APKBUILD')
-rw-r--r-- | user/polkit-qt-1/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/user/polkit-qt-1/APKBUILD b/user/polkit-qt-1/APKBUILD new file mode 100644 index 000000000..51eb20d1b --- /dev/null +++ b/user/polkit-qt-1/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=polkit-qt-1 +pkgver=0.112.0 +pkgrel=0 +pkgdesc="Qt wrapper library for PolicyKit" +url="https://www.kde.org/" +arch="all" +license="LGPL-2.1" +options="!check" # No test suite. +depends="" +depends_dev="polkit-dev glib-dev" +makedepends="$depends_dev cmake qt5-qtbase-dev" +install="" +subpackages="$pkgname-dev" +source="https://download.kde.org/stable/apps/KDE4.x/admin/polkit-qt-1-$pkgver.tar.bz2" +builddir="$srcdir/polkit-qt-1-$pkgver" + +build() { + cd "$builddir" + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + -DUSE_QT5=ON \ + ${CMAKE_CROSSOPTS} + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="4cb17389b54a09c53052f6d72aa5cbfe09ccb19f7fd4edf8b43ccd4751f5e88609c5f89777f4af92167d32eb2ce1e78537cea7bcfb60a90072d1fe02d6a59b50 polkit-qt-1-0.112.0.tar.bz2" |