diff options
author | root <root@rshg054.dnsready.net> | 2011-08-30 23:14:43 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-30 23:14:43 +0000 |
commit | b82f11fd76e83d60504649838e60a235b394160f (patch) | |
tree | 4914b89dc1dbc3ea44ae87c567ac7e9fc821c529 /extra/php | |
parent | e13fbaf2cbb72b7e8c8278ea94b70dd4a8ce48b2 (diff) |
Tue Aug 30 23:14:43 UTC 2011
Diffstat (limited to 'extra/php')
-rw-r--r-- | extra/php/PKGBUILD | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/extra/php/PKGBUILD b/extra/php/PKGBUILD index 5a2ff5ec4..18c9a5570 100644 --- a/extra/php/PKGBUILD +++ b/extra/php/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 136162 2011-08-23 15:55:48Z pierre $ +# $Id: PKGBUILD 136443 2011-08-29 12:25:25Z pierre $ # Maintainer: Pierre Schmitz <pierre@archlinux.de> pkgbase=php @@ -7,6 +7,7 @@ pkgname=('php' 'php-apache' 'php-fpm' 'php-embed' + 'php-pear' 'php-curl' 'php-enchant' 'php-gd' @@ -24,7 +25,7 @@ pkgname=('php' 'php-xsl') pkgver=5.3.8 _suhosinver=5.3.7-0.9.10 -pkgrel=1 +pkgrel=2 arch=('i686' 'x86_64') license=('PHP') url='http://www.php.net' @@ -191,6 +192,17 @@ build() { --enable-embed=shared \ ${phpextensions} make + + # pear + cp -a ${srcdir}/build-php ${srcdir}/build-pear + cd ${srcdir}/build-pear + ./configure ${phpconfig} \ + --disable-cgi \ + --with-readline \ + --enable-pcntl \ + --with-pear \ + ${phpextensions} + make } # check() { @@ -256,6 +268,19 @@ package_php-embed() { install -D -m644 ${srcdir}/${pkgbase}-${pkgver}/sapi/embed/php_embed.h ${pkgdir}/usr/include/php/sapi/embed/php_embed.h } +package_php-pear() { + pkgdesc='PHP Extension and Application Repository' + depends=('php' 'bash') + backup=('etc/php/pear.conf') + + cd ${srcdir}/build-pear + make -j1 install-pear INSTALL_ROOT=${pkgdir} + local i + while read i; do + [ ! -e "$i" ] || rm -rf "$i" + done < <(find ${pkgdir} -name '.*') +} + package_php-curl() { depends=('php' 'curl') pkgdesc='curl module for PHP' |