blob: bcb117645ea1d785bd746d1a7fd954297ac36876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
}
|