1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/php81-pecl-mongodb/APKBUILD
2021-09-16 12:22:27 +03:00

41 lines
1.2 KiB
Text

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