1 # Maintainer: Ben Allen <ben@sysadminschronicles.com>
6 _litespeed_dir="opt/lsws"
8 pkgdesc='Litespeed PHP LSAPI'
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')
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' )
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 \
37 cd ${startdir}/src/php-${pkgver}
39 tar -C ${startdir}/src/php-${pkgver}/sapi -xzf ${startdir}/php-litespeed-${_lsapiver}.tgz
44 ./configure ${phpconfig} || return 1
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