diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | mcrypt.install | 15 |
4 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f6907f586b9f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = php82-mcrypt + pkgdesc = php82 bindings for the unmaintained libmcrypt. For compat purposes + pkgver = 1.0.7 + pkgrel = 1 + url = https://pecl.php.net/package/mcrypt + install = mcrypt.install + arch = i686 + arch = x86_64 + license = PHP + makedepends = autoconf + makedepends = re2c + depends = php81 + depends = libmcrypt + source = http://pecl.php.net/get/mcrypt-1.0.7.tgz + md5sums = 5c3679e4d4581fb0f83fbe6f182bbf75 + +pkgname = php82-mcrypt diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3f3ea8a6fea5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/* +src/* +*.tar.* +*.t?z diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e9d899a9bb15 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +_phpbase=82 +pkgname=php${_phpbase}-mcrypt +pkgver=1.0.7 +pkgrel=1 +pkgdesc="php${_phpbase} bindings for the unmaintained libmcrypt. For compat purposes" +arch=('i686' 'x86_64') +url="https://pecl.php.net/package/mcrypt" +license=('PHP') +depends=('php81' 'libmcrypt') +makedepends=('autoconf' 're2c') +source=(http://pecl.php.net/get/mcrypt-${pkgver}.tgz) +install=mcrypt.install + +build() { + cd ${srcdir}/mcrypt-${pkgver} + phpize${_phpbase} + ./configure --with-php-config=php-config${_phpbase} + make +} + +package() { + cd ${srcdir}/mcrypt-${pkgver} + make INSTALL_ROOT=${pkgdir} install + install -d ${pkgdir}/etc/php${_phpbase}/conf.d + echo "extension=mcrypt.so" > ${pkgdir}/etc/php${_phpbase}/conf.d/mcrypt.ini +} + +md5sums=('5c3679e4d4581fb0f83fbe6f182bbf75') diff --git a/mcrypt.install b/mcrypt.install new file mode 100644 index 000000000000..b22b615811cb --- /dev/null +++ b/mcrypt.install @@ -0,0 +1,15 @@ +#!/bin/bash + +post_install() { + echo " + ==> PHP extension + A config file was stored under /etc/php82/conf.d/ + In order to use this extension make sure to uncomment it from its config file + " +} + +post_upgrade() { + post_install $1 +} + + |