diff options
author | Dāvis | 2015-11-05 15:59:04 +0200 |
---|---|---|
committer | Dāvis | 2015-11-05 15:59:04 +0200 |
commit | 70b3cdb3d4ae745a582c5a79ee885f46932b8765 (patch) | |
tree | facb4eb753558b3a3e9082fa2d3a346c177520a2 /PKGBUILD | |
download | aur-70b3cdb3d4ae745a582c5a79ee885f46932b8765.tar.gz |
Release polkit-qt5-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bcb117645ea1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Dāvis Mosāns <davispuh at gmail dot com> + +_pkgname=polkit-qt5 +pkgname=$_pkgname-git +pkgver=v0.112.0.r2.g3882e11 +pkgrel=1 +pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API' +arch=('i686' 'x86_64') +url='https://projects.kde.org/projects/kdesupport/polkit-qt-1' +license=('LGPL') +depends=('polkit' 'qt5-base') +makedepends=('git') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("$_pkgname::git+git://anongit.kde.org/polkit-qt-1.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir" + mkdir -p build +} + +build() { + cd "$srcdir/build" + cmake "$srcdir/$_pkgname" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_DESTINATION=/usr/lib + make +} + +package() { + cd "$srcdir/build" + make DESTDIR="${pkgdir}" install +} |