summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 387b4a7d7c0c29f7c2363d3289065cea0dea430e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
pkgname=php72-mcrypt
pkgver=1.0.2
pkgrel=1
pkgdesc="PHP 7.2 bindings for the unmaintained libmcrypt. For compat purposes"
arch=('i686' 'x86_64')
url="https://pecl.php.net/package/mcrypt"
license=('PHP')
depends=('php72' 'libmcrypt')
makedepends=('autoconf' 're2c')
source=(http://pecl.php.net/get/mcrypt-${pkgver}.tgz)
install=mcrypt.install

build() {
  cd ${srcdir}/mcrypt-${pkgver}
  phpize72
  ./configure
  make
}

package() {
  cd ${srcdir}/mcrypt-${pkgver}
  make INSTALL_ROOT=${pkgdir} install
  install -d ${pkgdir}/etc/php72/conf.d
  echo "extension=mcrypt.so" > ${pkgdir}/etc/php72/conf.d/mcrypt.ini
}

md5sums=('72ff2090a523dc6c388e5ee75d23b035')