diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-11-09 02:47:05 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-11-09 02:47:05 -0300 |
commit | daf72987c44af5827301a1aed1df8f4dd9db7b4a (patch) | |
tree | c037fc630bad84d6dc2401924f5050d76ada94fe /pcr/libmypaint | |
parent | 7580893112396ebda79c394dc637efb715cb4edb (diff) | |
download | abslibre-daf72987c44af5827301a1aed1df8f4dd9db7b4a.tar.gz abslibre-daf72987c44af5827301a1aed1df8f4dd9db7b4a.tar.bz2 abslibre-daf72987c44af5827301a1aed1df8f4dd9db7b4a.zip |
libmypaint: add pkgver() function
Diffstat (limited to 'pcr/libmypaint')
-rw-r--r-- | pcr/libmypaint/PKGBUILD | 5 |
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 |