diff options
author | Donald Carr | 2017-09-26 10:35:45 -0700 |
---|---|---|
committer | Donald Carr | 2017-09-26 10:37:39 -0700 |
commit | 4870547f4989c6d585a39e99b6e7f91bccc15abd (patch) | |
tree | 233e38d2faa2f423bd835c1d0466b7c5503316ad /PKGBUILD | |
parent | 906d3a327fabd52db4bd414f93ecc20016c31d68 (diff) | |
download | aur-4870547f4989c6d585a39e99b6e7f91bccc15abd.tar.gz |
Start packaging from tags in non-git suffixed package
Change-Id: Iedb5d75b79f573ee524f9a4aecc646e1da77ffd5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -2,24 +2,15 @@ #_qmake_args="CONFIG+=debug" pkgname=qt-gtk-platform-plugin -pkgver=0.0.201 +pkgver=0.1.0 pkgrel=1 pkgdesc='GTK platform backend for Qt' arch=('any') url='https://github.com/CrimsonAS/gtkplatform' license=('LGPL3') -source=("git://github.com/CrimsonAS/gtkplatform.git") +source=("git://github.com/CrimsonAS/gtkplatform.git#tag=$pkgver") sha256sums=('SKIP') -pkgver () { - cd "${srcdir}/gtkplatform" - if git describe --tags --long; then - git describe --tags --long | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g' - else - echo "0.0.$(git rev-list --count HEAD)" - fi -} - build() { cd "${srcdir}/gtkplatform" qmake DESTDIR=$srcdir |