diff options
author | Dāvis | 2015-10-18 18:38:22 +0300 |
---|---|---|
committer | Dāvis | 2015-10-18 18:38:22 +0300 |
commit | 93e492e356fef1130b8560730048e2b565a38b16 (patch) | |
tree | c25c438188b133a85674c8382b599bddb82ce231 /PKGBUILD | |
download | aur-qt5-location-git.tar.gz |
Release qt5-location-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a50b1a069fc4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Dāvis Mosāns <davispuh at gmail dot com> + +_pkgname=qt5-location +pkgname=$_pkgname-git +pkgver=v5.6.0.alpha1.r31.gf87ba04 +pkgrel=1 +pkgdesc='Provides access to position, satellite and area monitoring classes' +arch=('i686' 'x86_64') +url='https://code.qt.io/cgit/qt/qtlocation.git' +license=('GPL3' 'LGPL') +depends=('qt5-declarative-git' 'geoclue') +makedepends=('git') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("$_pkgname::git+https://code.qt.io/qt/qtlocation.git#branch=dev") +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" + + qmake "../$_pkgname" + make +} + +package() { + cd "$srcdir/build" + + make INSTALL_ROOT="$pkgdir" install + + install -D -m644 $srcdir/$_pkgname/LGPL_EXCEPTION.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/LGPL_EXCEPTION.txt +} |