# Maintainer: TBK pkgname=php7-pecl-mcrypt _pkgreal=mcrypt pkgver=1.0.2 pkgrel=0 pkgdesc="Provides bindings for the unmaintained libmcrypt." url="https://pecl.php.net/package/mcrypt" arch="all" license="PHP" depends="php7-common" makedepends="pcre-dev php7-dev autoconf libmcrypt-dev" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz" builddir="$srcdir/$_pkgreal-$pkgver" provides="php7-mcrypt=$pkgver-r$pkgrel" # for backward compatibility replaces="php7-mcrypt" # for backward compatibility build() { cd "$builddir" phpize7 ./configure --prefix=/usr --with-php-config=php-config7 make } check() { cd "$builddir" # One test fails with PHP 7.2.11 rm tests/bug8040.phpt make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir"/ install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini } sha512sums="bf3796b60f1d8d34185c3ad0d813653fe64ccfc883106ba544b01a8caa7bf9729978f44e0d481d28af9f8827803dcc5cd8bfc83e50dc950d26f851fabc868b18 mcrypt-1.0.2.tgz"