# Maintainer: 謝致邦 pkgname=php52 _pkgname=php pkgver=5.2.17 pkgrel=3 pkgdesc='A high-level scripting language(PHP 5.2.17 with Suhosin and Laruence patch)' arch=('i686' 'x86_64') license=('PHP') url='http://www.php.net' backup=('etc/php/php.ini') depends=('glibc' 'readline' 'ncurses' 'libxml2' 'pcre') source=("http://www.php.net/distributions/${_pkgname}-${pkgver}.tar.bz2" "http://download.suhosin.org/suhosin-patch-5.2.16-0.9.7.patch.gz" "http://laruence.github.io/php-5.2-max-input-vars/php-5.2.17-max-input-vars.patch") md5sums=('b27947f3045220faf16e4d9158cbfe13' 'd815fc99a0c25c21f5df28551fcbb001' '6174a472dd14b163277fbade6b781864') build() { cd ${srcdir}/${_pkgname}-${pkgver} # apply suhosin patch #patch -p1 -i ${srcdir}/suhosin-patch-5.2.16-0.9.7.patch # apply laruence patch #patch -p1 -i ${srcdir}/php-5.2.17-max-input-vars.patch ./configure make make INSTALL_ROOT=${pkgdir} install }