Commit be24d158 authored by Andy Postnikov's avatar Andy Postnikov

non-free/php7-pecl-mongodb: add check()

parent 2a7aee23
......@@ -4,7 +4,7 @@ pkgname=php7-pecl-mongodb
_pkgreal=mongodb
pkgver=1.5.3
_pkgver=${pkgver/_rc/RC}
pkgrel=2
pkgrel=3
pkgdesc="PHP7 MongoDB driver"
url="https://pecl.php.net/package/mongodb"
arch="all"
......@@ -12,7 +12,6 @@ license="Apache-2.0"
depends="php7-json"
makedepends="openssl-dev pcre-dev php7-dev autoconf"
source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
options="!check" # tests requires additional dependencies (vagrant)
builddir="$srcdir"/$_pkgreal-$_pkgver
provides="php7-mongodb=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-mongodb" # for backward compatibility
......@@ -25,6 +24,11 @@ build() {
make
}
check() {
# tests requires additional dependencies (vagrant)
php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal
}
package() {
cd "$builddir"
make INSTALL_ROOT="$pkgdir/" install
......
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