summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThore Boedecker2017-05-09 22:29:44 +0200
committerThore Boedecker2017-05-09 22:29:44 +0200
commit0bc2c3bd45a0b0cc1240450024c0517b88a8ea80 (patch)
tree33f23cfbab12f4af4d22bb7536bafd4f84813ffa
parent5e80259bb973fa911fc43a3ee9a3e0bfb4cf2e3d (diff)
downloadaur-0bc2c3bd45a0b0cc1240450024c0517b88a8ea80.tar.gz
improve check()
Signed-off-by: Thore Boedecker <me@foxxx0.de>
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD17
2 files changed, 15 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8239a0b1575..b0fc5e6172e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
# Generated by mksrcinfo v8
-# Tue May 9 18:58:49 UTC 2017
+# Tue May 9 20:29:39 UTC 2017
pkgbase = php56-geoip
pkgdesc = GeoIP module for php56
pkgver = 1.1.1
- pkgrel = 1
+ pkgrel = 2
url = https://pecl.php.net/package/geoip
arch = i686
arch = x86_64
license = PHP
depends = php56>=5.6.17-3
depends = geoip
- provides = php-geoip=1.1.1-1
+ provides = php-geoip=1.1.1-2
backup = etc/php56/conf.d/geoip.ini
source = https://pecl.php.net/get/geoip-1.1.1.tgz
sha256sums = b2d05c03019d46135c249b5a7fa0dbd43ca5ee98aea8ed807bc7aa90ac8c0f06
diff --git a/PKGBUILD b/PKGBUILD
index da2544fb8af..0884a1f164a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=php56-geoip
_pkgbase="${pkgname#php56-}"
pkgver=1.1.1
-pkgrel=1
+pkgrel=2
pkgdesc="GeoIP module for php56"
arch=('i686' 'x86_64')
url="https://pecl.php.net/package/geoip"
@@ -14,11 +14,18 @@ backup=('etc/php56/conf.d/geoip.ini')
source=("https://pecl.php.net/get/geoip-${pkgver}.tgz")
sha256sums=('b2d05c03019d46135c249b5a7fa0dbd43ca5ee98aea8ed807bc7aa90ac8c0f06')
+prepare() {
+ cd "${srcdir}/${_pkgbase}-${pkgver}"
+
+ # remove broken tests
+ # geoip_setup_custom_directory() (with trailing slash) [tests/019.phpt]
+ rm ./tests/019.phpt
+}
+
build() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
phpize56
- # ./configure --prefix=/usr
./configure \
--config-cache \
--sysconfdir=/etc/php56 \
@@ -29,9 +36,9 @@ build() {
check() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
- # disable prompt to send test report
- export NO_INTERACTION=1
- make test
+ local ret=0
+ make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1 || ret=1
+ return $ret
}
package() {