From daf72987c44af5827301a1aed1df8f4dd9db7b4a Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Mon, 9 Nov 2015 02:47:05 -0300 Subject: libmypaint: add pkgver() function --- pcr/libmypaint/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pcr/libmypaint/PKGBUILD') 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 -- cgit v1.2.3