diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-10-21 00:12:07 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-10-21 00:19:37 +0300 |
commit | bac9f295a45641e1489eaff392852884b055e7cb (patch) | |
tree | 1229175745821c801b87697f0fc7f78f5ea76858 /community/php7-pecl-mcrypt/APKBUILD | |
parent | 32ff6fdffe40025b287cef87adcb1e2be78b4955 (diff) | |
download | aports-bac9f295a45641e1489eaff392852884b055e7cb.tar.bz2 aports-bac9f295a45641e1489eaff392852884b055e7cb.tar.xz |
community/php7-pecl-mcrypt: renamed from php7-mcrypt, modernize
Diffstat (limited to 'community/php7-pecl-mcrypt/APKBUILD')
-rw-r--r-- | community/php7-pecl-mcrypt/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/php7-pecl-mcrypt/APKBUILD b/community/php7-pecl-mcrypt/APKBUILD new file mode 100644 index 0000000000..e814689744 --- /dev/null +++ b/community/php7-pecl-mcrypt/APKBUILD @@ -0,0 +1,42 @@ +# Maintainer: TBK <alpine@jjtc.eu> +pkgname=php7-pecl-mcrypt +_pkgreal=mcrypt +pkgver=1.0.1 +pkgrel=1 +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="1677202715499a41ac6999089257a059106e58cbac06ca8a7dd2e9edd28be5a4118234dd7468110e9e3d7f9de5d099367848fe84bcd06716ea56645c9015c578 mcrypt-1.0.1.tgz" |