summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph R. Quinn2020-02-17 14:57:15 -0500
committerJoseph R. Quinn2020-02-17 15:00:22 -0500
commit86fd1048e9ee61da67fd005d1bdedeec7bc8f4c0 (patch)
treec37b4e82ba27d691488c1faf24755a7fb5519193
parentf5140d0ee10ffe682e7e7ba7602fd61104dd36dc (diff)
parentaf16acd0483963af529ad88f7c8ec3b9657d00f6 (diff)
downloadaur-86fd1048e9ee61da67fd005d1bdedeec7bc8f4c0.tar.gz
Fixing pkgver()
-rw-r--r--.SRCINFO2
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD24
3 files changed, 14 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0831adc8411..713d94ad81a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = php-phalcon-git
pkgdesc = High performance, full-stack PHP framework delivered as a C extension. Git package.
- pkgver = 4.0.3
+ pkgver = 4.0.4
pkgrel = 1
url = https://phalcon.io/
arch = i686
diff --git a/.gitignore b/.gitignore
index ccdadf69359..064f386d620 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@ pkg/
src/
# End of https://www.gitignore.io/api/archlinuxpackages
+cphalcon
diff --git a/PKGBUILD b/PKGBUILD
index f3b93b85286..f36055a89e7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Joseph R Quinn <quinn.josephr@protonmail.com>
pkgname=php-phalcon-git
_pkgname=cphalcon
-pkgver=4.0.3
+pkgver=4.0.4
pkgrel=1
pkgdesc="High performance, full-stack PHP framework delivered as a C extension. Git package."
arch=('i686' 'x86_64')
@@ -37,22 +37,22 @@ _PHP_VERSION=`php-config --version`
[ $CARCH == "x86_64" ] && _arch="64bits" || _arch="32bits"
pkgver() {
- cd "$srcdir/$_pkgname"
- git fetch
- printf "%s" "$(git describe --abbrev=0 --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/v//g')"
+ cd "$srcdir/$_pkgname"
+ git fetch
+ printf "%s" "$(git describe --abbrev=0 --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/v//g')"
}
build() {
- export CPPFLAGS+="-DPHALCON_RELEASE"
- cd "$srcdir/$_pkgname/build/$_PHP_VERSION/$_arch"
- phpize
- ./configure --prefix=/usr
- make
+ export CPPFLAGS+="-DPHALCON_RELEASE"
+ cd "$srcdir/$_pkgname/build/$_PHP_VERSION/$_arch"
+ phpize
+ ./configure --prefix=/usr
+ make
}
package() {
- cd "$srcdir/$_pkgname/build/$_PHP_VERSION/$_arch"
- make INSTALL_ROOT="$pkgdir" install
- install -Dm644 "$srcdir/phalcon.ini" "$pkgdir/etc/php/conf.d/phalcon.ini"
+ cd "$srcdir/$_pkgname/build/$_PHP_VERSION/$_arch"
+ make INSTALL_ROOT="$pkgdir" install
+ install -Dm644 "$srcdir/phalcon.ini" "$pkgdir/etc/php/conf.d/phalcon.ini"
install -Dm644 "$srcdir/$_pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/php-phalcon/LICENSE.txt"
}