mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 08:51:25 +02:00
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# 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"
|