diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-11 16:04:34 -0600 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2019-04-03 08:49:55 +0000 |
commit | 8a901de31fa055ed591d487e12f8bb9ffcc0df21 (patch) | |
tree | 10bc98c626703819e94ec25bf0c2eaa0f6fe2cc9 /non-free/php7-pecl-mongodb/APKBUILD | |
parent | fffa6ab6963a4a0045f99432ac487957791685ea (diff) | |
download | aports-8a901de31fa055ed591d487e12f8bb9ffcc0df21.tar.bz2 aports-8a901de31fa055ed591d487e12f8bb9ffcc0df21.tar.xz |
community/mongodb: expunge nonfree software
Upstream has switched to a nonfree license.
Diffstat (limited to 'non-free/php7-pecl-mongodb/APKBUILD')
-rw-r--r-- | non-free/php7-pecl-mongodb/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/non-free/php7-pecl-mongodb/APKBUILD b/non-free/php7-pecl-mongodb/APKBUILD new file mode 100644 index 0000000000..8080476daf --- /dev/null +++ b/non-free/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=2 +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" +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" |