updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / php-lsapi / PKGBUILD
blobe326aa863f784c435dba6c831313a516b84c5466
1 # Maintainer: Ben Allen <ben@sysadminschronicles.com>
2 pkgname="php-lsapi"
3 pkgver=5.2.5
4 pkgrel=1
5 _lsapiver=4.5
6 _litespeed_dir="opt/lsws"
7 provides=('php-lsapi')
8 pkgdesc='Litespeed PHP LSAPI'
9 arch=('i686' 'x86_64')
10 license=('PHP')
11 url='http://www.litespeedtech.com'
12 backup=('opt/lsws/php/php.ini')
13 depends=('glibc' 'libxml2')
14 makedepends=('postgresql-libs'  \
15              'libpng' 'libjpeg' 'libtool'  \
16              'openssl' 'bzip2' 'gdbm')
17 options=('emptydirs')
18 noextract=("php-litespeed-${_lsapiver}.tgz")
19 source=("http://www.php.net/distributions/php-${pkgver}.tar.bz2" \
20         'php.ini' "http://www.litespeedtech.com/packages/lsapi/php-litespeed-${_lsapiver}.tgz")
21 md5sums=('1fe14ca892460b09f06729941a1bb605' \
22          'bc4d8b057354259588ed249839f1d20a' \
23          'd8b74f58d83b228ddeaf5378fc023824' )
24 build() {
26         phpconfig="--with-config-file-path=../php \
27         --with-litespeed --with-pgsql --with-exif --enable-bcmath \
28         --enable-inline-optimization \
29         --with-gd --with-jpeg-dir=/usr/lib \
30         --with-png-dir=/usr/lib --with-gettext \
31         --disable-debug \
32         --disable-rpath \
33         --disable-static \
34         --enable-shared \
35         --disable-cli"
37         cd ${startdir}/src/php-${pkgver}
38         
39         tar -C ${startdir}/src/php-${pkgver}/sapi -xzf ${startdir}/php-litespeed-${_lsapiver}.tgz
41         touch ac*
42         ./buildconf --force
44         ./configure ${phpconfig} || return 1
45         make || return 1
46         
47         install -D -m755 ${startdir}/src/php-${pkgver}/sapi/litespeed/php ${startdir}/pkg/${_litespeed_dir}/fcgi-bin/lsphp
48         install -D -m644 ${startdir}/src/php.ini ${startdir}/pkg/${_litespeed_dir}/php/php.ini