Commit 2a7aee23 authored by Andy Postnikov's avatar Andy Postnikov

community/php7-pecl-redis: add check()

parent 445614bd
......@@ -3,7 +3,7 @@
pkgname=php7-pecl-redis
_pkgreal=redis
pkgver=4.3.0
pkgrel=0
pkgrel=1
pkgdesc="PHP extension for interfacing with Redis - PECL"
url="https://pecl.php.net/package/redis"
arch="all"
......@@ -11,7 +11,6 @@ license="PHP-3.01"
depends="php7-common php7-pecl-igbinary php7-session"
makedepends="php7-dev autoconf re2c"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
options="!check" # Need running redis server
builddir="$srcdir/$_pkgreal-$pkgver"
provides="php7-redis=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-redis" # for backward compatibility
......@@ -25,6 +24,11 @@ build() {
make
}
check() {
# Need running redis server
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}
package() {
local confdir="$pkgdir/etc/php7/conf.d"
cd "$builddir"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment