# Contributor: Fabio Ribeiro # Maintainer: Andy Postnikov pkgname=php81-pecl-mailparse _extname=mailparse pkgver=3.1.5 pkgrel=0 pkgdesc="PHP 8.1 extension for parsing and working with email messages - PECL" url="https://pecl.php.net/package/mailparse" arch="all" license="PHP-3.01" depends="php81-mbstring" makedepends="php81-dev" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir/$_extname-$pkgver" build() { phpize81 ./configure --prefix=/usr --with-php-config=php-config81 make } check() { # Tests require mbstring extension which is not bundled make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test PHP_TEST_SHARED_EXTENSIONS=" \ -d extension=/usr/lib/php81/modules/mbstring.so \ -d extension=modules/$_extname.so" TESTS=--show-diff } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php81/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/60_$_extname.ini } sha512sums=" 9f01f70da195f67d2a95d05d94667a282c53734adc468adbea09abf9eab7e9ab4f94cbfcd415155d7335fa6c013af53f62f387ca47c95901dffc9712ac37d968 php-pecl-mailparse-3.1.5.tgz "