diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-07-27 02:54:00 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-27 02:54:00 -0300 |
commit | b1eeabbd1ff882ccddd6eeb404c28ffdbabf18f3 (patch) | |
tree | 2d98f1e85e6ba8a5417368c4e92b4c67978bddc4 /testing/php7-pecl-mongodb | |
parent | e70b73e3502b0870682cf39523ca1fb7cb99ccac (diff) | |
download | aports-b1eeabbd1ff882ccddd6eeb404c28ffdbabf18f3.tar.bz2 aports-b1eeabbd1ff882ccddd6eeb404c28ffdbabf18f3.tar.xz |
testing/php7-pecl-mongodb: move from non-free
Diffstat (limited to 'testing/php7-pecl-mongodb')
-rw-r--r-- | testing/php7-pecl-mongodb/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/php7-pecl-mongodb/APKBUILD b/testing/php7-pecl-mongodb/APKBUILD new file mode 100644 index 0000000000..1980155b62 --- /dev/null +++ b/testing/php7-pecl-mongodb/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-pecl-mongodb +_pkgreal=mongodb +pkgver=1.5.5 +_pkgver=${pkgver/_rc/RC} +pkgrel=0 +pkgdesc="PHP7 MongoDB driver" +url="https://pecl.php.net/package/mongodb" +arch="all" +license="Apache-2.0" +depends="php7-json" +makedepends="openssl-dev pcre-dev php7-dev autoconf" +source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" +builddir="$srcdir"/$_pkgreal-$_pkgver +provides="php7-mongodb=$pkgver-r$pkgrel" # for backward compatibility +replaces="php7-mongodb" # for backward compatibility + +build() { + cd "$builddir" + phpize7 + ./configure --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 + make +} + +check() { + # tests requires additional dependencies (vagrant) + php7 -d extension="$builddir"/modules/$_pkgreal.so --ri $_pkgreal +} + +package() { + cd "$builddir" + make INSTALL_ROOT="$pkgdir/" install + install -d "$pkgdir"/etc/php7/conf.d + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini +} + +sha512sums="1eefc8f8e359a979082dc7808e89ff5418cd2dc73d4250638e33dc32cce40ef42502e9dbbb07303381e0062b84818568034f4e4cda8c8bf905513d00bf008392 mongodb-1.5.5.tgz" |