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