diff options
-rw-r--r-- | testing/php7-mongodb/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/php7-mongodb/APKBUILD b/testing/php7-mongodb/APKBUILD new file mode 100644 index 0000000000..72e73478ee --- /dev/null +++ b/testing/php7-mongodb/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-mongodb +_pkgreal=mongodb +pkgver=1.1.4 +_pkgver=${pkgver/_rc/RC} +pkgrel=0 +pkgdesc="PHP7 MongoDB driver" +url="http://pecl.php.net/package/mongodb" +arch="x86_64 armhf" +license="PHP" +depends="openssl-dev" +pecldepends="php7-dev autoconf" +makedepends="$pecldepends" +install="" +subpackages="" +source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz" + +_builddir="$srcdir"/$_pkgreal-$_pkgver +build() { + cd "$_builddir" + phpize7 || return 1 + ./configure --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make INSTALL_ROOT="$pkgdir/" install || return 1 + install -d "$pkgdir"/etc/php7/conf.d || return 1 + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini +} + +md5sums="065b4472562d64e300f6c08442865df2 mongodb-1.1.4.tgz" +sha256sums="c6aee3b480d2e53b95ce9f4838c08d3f19722fccdb68c57ca11869cad4c3ff8a mongodb-1.1.4.tgz" +sha512sums="ccf14a880244c24cbab3c339f73c8e521c3d3974d07aca992dd45b4c0a548da384ca82b17aceb9a634ac74b9b8c2d2f8b386488472b4ee9ee419d299faf97488 mongodb-1.1.4.tgz" |