diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-22 06:02:32 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-06-22 06:02:32 +0000 |
commit | b75b9153684cce1c051fa0346dbf70c98ace0085 (patch) | |
tree | d38bc571390fecff9fc1865ea3bfa517ac562011 /community/php7-mongodb/APKBUILD | |
parent | e165f8a17d0f62a4925ef7238609b80144471436 (diff) | |
download | aports-b75b9153684cce1c051fa0346dbf70c98ace0085.tar.bz2 aports-b75b9153684cce1c051fa0346dbf70c98ace0085.tar.xz |
community/php7-mongodb: moved from testing
Diffstat (limited to 'community/php7-mongodb/APKBUILD')
-rw-r--r-- | community/php7-mongodb/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/php7-mongodb/APKBUILD b/community/php7-mongodb/APKBUILD new file mode 100644 index 0000000000..635cb91f68 --- /dev/null +++ b/community/php7-mongodb/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Fabio Ribeiro <fabiorphp@gmail.com> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-mongodb +_pkgreal=mongodb +pkgver=1.4.4 +_pkgver=${pkgver/_rc/RC} +pkgrel=0 +pkgdesc="PHP7 MongoDB driver" +url="http://pecl.php.net/package/mongodb" +arch="all" +license="PHP" +depends="php7-json" +makedepends="libressl-dev pcre-dev php7-dev autoconf" +source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz + libressl-273.patch" +options="!check" # tests requires additional dependencies (vagrant) +builddir="$srcdir"/$_pkgreal-$_pkgver + +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="fe54b169593d8cddc0318ae6e40f833796b8745a45917446ce360604bb1ceb7b3242498ac9ca6a6be1389a735c12786b0542ba29655ff42a0c96e16a4a0b68cb mongodb-1.4.4.tgz +d1851a2fc4bd311e6286527038f677e4eb48f1b773470eb0a9f324a8fa5ffebdcfd0f2f2419eb13634045e1fa5f9669e2e64d4c976c0fa97ce870fd4de5cc735 libressl-273.patch" |