updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / php-pear / PKGBUILD
blob7cd09d94333bed5826e66ea4dcdc829a50ff2122
1 # $Id: PKGBUILD 136162 2011-08-23 15:55:48Z pierre $
2 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
4 base="php"
5 pkgname=php-pear
6 pkgver=5.3.8
7 pkgrel=2
8 arch=('i686' 'x86_64')
9 license=('PHP')
10 url='http://www.php.net'
11 depends=('php' 'libxml2')
12 source=("http://www.php.net/distributions/${base}-${pkgver}.tar.bz2")
13 pkgdesc='An HTML-embedded scripting language'
14 md5sums=('704cd414a0565d905e1074ffdc1fadfb')
16 build() {
17         phpconfig="--srcdir=../${base}-${pkgver} \
18                 --prefix=/usr \
19                 --sysconfdir=/etc/php \
20                 --localstatedir=/var \
21                 --with-layout=GNU \
22                 --with-config-file-path=/etc/php \
23                 --with-config-file-scan-dir=/etc/php/conf.d \
24                 --enable-inline-optimization \
25                 --disable-debug \
26                 --disable-rpath \
27                 --disable-static \
28                 --enable-shared \
29                 --mandir=/usr/share/man \
30                 --with-pear \
31                 --disable-all \
32                 --enable-xml \
33                 --enable-libxml
34                 "
36         EXTENSION_DIR=/usr/lib/php/modules
37         export EXTENSION_DIR
38         PEAR_INSTALLDIR=/usr/share/pear
39         export PEAR_INSTALLDIR
41         cd ${srcdir}/${base}-${pkgver}
43         # php
44         mkdir ${srcdir}/build-php
45         cd ${srcdir}/build-php
46         ln -s ../${base}-${pkgver}/configure
47         ./configure ${phpconfig} \
48                 --disable-cgi \
49                 --with-readline \
50                 --enable-pcntl
51         make
54 package() {
55         cd ${srcdir}/build-php
56         make -j1 INSTALL_ROOT=${pkgdir} install-pear