summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Carr2017-06-14 13:13:10 -0700
committerDonald Carr2017-06-14 15:41:12 -0700
commit08539eb0d3fc705c9530017848e9973cd96e8262 (patch)
treec27804ef148e13993b42236fb3cde2f9233bf0e1
parent7cb58109aacbf5a9d0bc20f15dc5844350bbc047 (diff)
downloadaur-08539eb0d3fc705c9530017848e9973cd96e8262.tar.gz
Move to tag based versioning
Change-Id: Icf00d65a5f143655b97417b6ea8e870af5c602cc
-rw-r--r--PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bd084fffef1..c7a1383d7f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -13,9 +13,8 @@ if [[ -n "$_piver" ]]; then
_qmake="/opt/qt-sdk-raspberry-pi${_piver}/bin/qmake"
fi
-_pi_ver=2
pkgname="pi-compositor"
-pkgver=0.0.2
+pkgver=.0.2.r1.g41ce6ff
pkgrel=1
pkgdesc="Rudimentary QML compositor branched off qtwayland/examples/wayland/pure-qml"
arch=("any")
@@ -23,10 +22,15 @@ url="http://www.qt.io"
license=("LGPL3" "GPL3")
makedepends=("qt-sdk-raspberry-pi${_piver}")
depends=("qt-sdk-raspberry-pi-target-libs")
-source=("git://github.com/sirspudd/${pkgname}.git#tag=${pkgver}")
+source=("git://github.com/sirspudd/${pkgname}.git")
sha256sums=("SKIP")
options=('!strip')
+pkgver() {
+ cd ${srcdir}/${pkgname}
+ git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
build() {
local repo_src=${srcdir}/${pkgname}