diff options
Diffstat (limited to 'community/php7-pecl-mongodb/APKBUILD')
-rw-r--r-- | community/php7-pecl-mongodb/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/php7-pecl-mongodb/APKBUILD b/community/php7-pecl-mongodb/APKBUILD new file mode 100644 index 0000000000..f1ef9852b2 --- /dev/null +++ b/community/php7-pecl-mongodb/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-pecl-mongodb +_pkgreal=mongodb +pkgver=1.5.3 +_pkgver=${pkgver/_rc/RC} +pkgrel=1 +pkgdesc="PHP7 MongoDB driver" +url="https://pecl.php.net/package/mongodb" +arch="all" +license="Apache-2.0" +depends="php7-json" +makedepends="libressl-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 + +build() { + cd "$builddir" + phpize7 + ./configure --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 + make +} + +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="35704e75bd7867a436d953c00c7560c9a08a4fa8f3555d7cc00aeda34e87c6c7aa7ecc1d7f674747e34f4f8dac35d320f6317e60229528ea9782bbe669bafec0 mongodb-1.5.3.tgz" |