# Contributor: TBK # Maintainer: Andy Postnikov pkgname=php8-pecl-maxminddb _extname=maxminddb pkgver=1.10.1 pkgrel=0 pkgdesc="PHP 8 MaxMind DB Reader extension - PECL" url="https://pecl.php.net/package/maxminddb" arch="all" license="Apache-2.0" depends="php8-bcmath" makedepends="php8-dev libmaxminddb-dev" source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir/$_extname-$pkgver/ext" build() { phpize8 ./configure --prefix=/usr --with-php-config=/usr/bin/php-config8 make } check() { make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1 } package() { make INSTALL_ROOT="$pkgdir" install local confdir="$pkgdir"/etc/php8/conf.d install -d $confdir echo "extension=maxminddb" > $confdir/maxminddb.ini } sha512sums="51fe1e5e184032e60d5fb9c0c748f645a6d3532477e7fc22da9d114e9f5021ce902e685eb9eed915365fbedea44797bee72085d17fc7d582a21f47934fd93acc php-pecl-maxminddb-1.10.1.tar.gz"