# Contributor: Fabio Ribeiro # Maintainer: Andy Postnikov pkgname=php8-pecl-mongodb _extname=mongodb pkgver=1.16.1 pkgrel=0 pkgdesc="PHP 8.0 MongoDB driver - PECL" url="https://pecl.php.net/package/mongodb" arch="all" license="Apache-2.0" depends="php8-common" makedepends="cyrus-sasl-dev icu-dev openssl-dev>3 php8-dev snappy-dev zstd-dev" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz strerror_r.patch " builddir="$srcdir"/$_extname-$pkgver provides="php8-mongodb=$pkgver-r$pkgrel" # for backward compatibility replaces="php8-mongodb" # for backward compatibility build() { phpize8 ./configure --prefix=/usr \ --with-php-config=/usr/bin/php-config8 make } check() { # tests requires additional dependencies (vagrant) php8 -d extension=modules/$_extname.so --ri $_extname } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php8/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" f149ad1c6c210c5ccb3bf03f95bd3aa17ff129d4b3c594c8350ea4e726e71f754d286793e80b722ea26bf24894a197afa20758f7b9e8400f406ca9ff3d08b182 php-pecl-mongodb-1.16.1.tgz 2bacf4c3e9c2761923cd389d4e417fe8aada6f4a46b37107f4bd9f9990a3c0bd08e19957b3eb19b25ad1be808503b7b3eec9838546479b061599c509d5fa437d strerror_r.patch "