summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8aadde7f8fd0887567872bb1b17cef8d3ed943fe (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
28
29
# Maintainer: Adrian Sausenthaler <aur@sausenthaler.de>

pkgname=php-mcrypt
pkgver=1.0.6
epoch=1
pkgrel=1
pkgdesc="mcrypt module for extra/php package (>=8.0.0, <=8.3.0)"
arch=('i686' 'x86_64')
url="https://pecl.php.net/package/mcrypt"
license=('PHP')
depends=('php' 'libmcrypt')
makedepends=('autoconf' 're2c')
source=(http://pecl.php.net/get/mcrypt-${pkgver}.tgz)
install=mcrypt.install
sha256sums=('be6efd52a76ed01aabdda0ce426aed0a93db4ec06908c16a5460175c35b0d08a')

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

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