# Contributor: TBK # Maintainer: Andy Postnikov pkgname=php81-pecl-mcrypt _extname=mcrypt pkgver=1.0.4 pkgrel=0 pkgdesc="Provides PHP 8.1 bindings for the unmaintained libmcrypt - PECL" url="https://pecl.php.net/package/mcrypt" arch="all" license="PHP-3.01" depends="php81-common" makedepends="php81-dev libmcrypt-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() { rm -f tests/mcrypt_rijndael128_128BitKey.phpt # fails make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php81/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums="6a8244761035640366041a5f26057ab14bb85eaaa973ddf604e152b786ef750ec775ae91d7582044700d6fdef902425f3a9d6839113a52e0a9f957bf9d0c189a php-pecl-mcrypt-1.0.4.tgz"