# Contributor: Fabio Ribeiro # Maintainer: Andy Postnikov pkgname=php8-pecl-solr _extname=solr pkgver=2.6.0 pkgrel=1 pkgdesc="Apache SOLR extension for PHP 8 - PECL" url="https://pecl.php.net/package/solr" arch="all" license="PHP-3.01" depends="php8-common" makedepends="php8-dev curl-dev libxml2-dev" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz fix-tests.patch" builddir="$srcdir"/$_extname-$pkgver build() { phpize8 ./configure --prefix=/usr --with-php-config=php-config8 make } check() { php8 -d extension=modules/$_extname.so --ri $_extname make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test \ TESTS='--show-diff' } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php8/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/40_$_extname.ini } sha512sums=" 0b1254d69752759fbc4ca9962a238399a926a31820258790d55d020c9fbb116e8b6a5d7169f3db07c94e2a2f561ef779f542babdac2f16a2ebe29255c063cab2 php-pecl-solr-2.6.0.tgz 553503d194c8c8c4db065a4c21136e51d4ba8bb9a74327d312a6506e12d91b4d2b72c5082741e961df7f3852fecf2374333c8f00a173ca2e6e7e6f1049ecf6cb fix-tests.patch "