summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 92da9e8..bd4255b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
1pkgname="snuffleupagus" 1pkgname="snuffleupagus"
2pkgver=0.1 2pkgver=r146.baa0d6d
3pkgrel=1 3pkgrel=1
4pkgdesc="Snuffleupagus module for PHP7." 4pkgdesc="Snuffleupagus module for PHP7."
5url="https://snuffleupagus.readthedocs.io" 5url="https://snuffleupagus.readthedocs.io"
@@ -11,7 +11,8 @@ source=("${pkgname}"::"git+https://github.com/nbs-system/${pkgname}.git")
11md5sums=('SKIP') 11md5sums=('SKIP')
12 12
13pkgver() { 13pkgver() {
14 sed -n 's/.*#define PHP_SNUFFLEUPAGUS_VERSION "\(.*\) ".*/\1/p' "${srcdir}/${pkgname}/src/php_${pkgname}.h" 14 cd "${srcdir}/${pkgname}"
15 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
15} 16}
16 17
17build() { 18build() {