aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-mongodb
diff options
context:
space:
mode:
authorFabio da Silva Ribeiro <silva.ribeiro@dafiti.com.br>2016-03-11 15:23:44 -0300
committerTimo Teräs <timo.teras@iki.fi>2016-03-18 09:32:09 +0000
commitf8dc297ca3498bcc7b520c889f3e05bb71df24ff (patch)
tree89e22ed783f3f1cf555f376263426f8a6a0266b9 /testing/php7-mongodb
parent494848832232841a985fb61d6b621d17cdc0b255 (diff)
downloadaports-f8dc297ca3498bcc7b520c889f3e05bb71df24ff.tar.bz2
aports-f8dc297ca3498bcc7b520c889f3e05bb71df24ff.tar.xz
testing/php7-mongodb: PHP7 MongoDB Driver
Diffstat (limited to 'testing/php7-mongodb')
-rw-r--r--testing/php7-mongodb/APKBUILD38
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"