summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-11-09 02:47:05 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-11-09 02:47:05 -0300
commitdaf72987c44af5827301a1aed1df8f4dd9db7b4a (patch)
treec037fc630bad84d6dc2401924f5050d76ada94fe /pcr
parent7580893112396ebda79c394dc637efb715cb4edb (diff)
downloadabslibre-daf72987c44af5827301a1aed1df8f4dd9db7b4a.tar.gz
abslibre-daf72987c44af5827301a1aed1df8f4dd9db7b4a.tar.bz2
abslibre-daf72987c44af5827301a1aed1df8f4dd9db7b4a.zip
libmypaint: add pkgver() function
Diffstat (limited to 'pcr')
-rw-r--r--pcr/libmypaint/PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcr/libmypaint/PKGBUILD b/pcr/libmypaint/PKGBUILD
index 2ed94a495..f80d8d265 100644
--- a/pcr/libmypaint/PKGBUILD
+++ b/pcr/libmypaint/PKGBUILD
@@ -12,6 +12,11 @@ makedepends=(git gperftools scons) # fail build with gobject-introspection; docs
source=($pkgname::git+https://github.com/${pkgname#lib}/$pkgname)
sha512sums=(SKIP)
+pkgver() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
cd $srcdir/$pkgname
mkdir $srcdir/$pkgname-fakeinstall