1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/php7-pecl-mongodb/APKBUILD
2023-02-10 16:33:27 +01: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.15.1
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 zstd-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="
ad419ab0d0b971280debc2bf25579627c91e8f231cdd2112b1ff7b14272c28267c4b7b52eeaf4d550de57c6b130dd575b9f3e65ce42153a81ad8b7efad57a0b2 php-pecl-mongodb-1.15.1.tgz
"