1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/php7-pecl-mongodb/APKBUILD
2022-10-22 04:18:57 +02:00

40 lines
1.2 KiB
Text

# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-mongodb
_extname=mongodb
pkgver=1.14.2
pkgrel=0
pkgdesc="PHP 7 MongoDB driver - PECL"
url="https://pecl.php.net/package/mongodb"
arch="all"
license="Apache-2.0"
depends="php7-json"
makedepends="cyrus-sasl-dev icu-dev openssl1.1-compat-dev php7-dev snappy-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
provides="php7-mongodb=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-mongodb" # for backward compatibility
build() {
phpize7
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config7
make
}
check() {
# tests requires additional dependencies (vagrant)
php7 -d extension=modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php7/conf.d
install -d $_confdir
echo "extension=$_extname.so" > $_confdir/$_extname.ini
}
sha512sums="
2706c86f1408a588ea65c2af3706be8fd500306ac2a5d198fd611e5bed4a8ba52d51335c29d046bdb7183e9bd89a7430c651e254689d18109e524b27ac2413b4 php-pecl-mongodb-1.14.2.tgz
"