[arch-commits] Commit in php/trunk (PKGBUILD)
Pierre Schmitz
pierre at archlinux.org
Wed Mar 3 02:03:09 UTC 2010
Date: Tuesday, March 2, 2010 @ 21:03:08
Author: pierre
Revision: 71005
upgpkg: php 5.3.1-7
provide embed sapi; FS#18504
Modified:
php/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-03-03 01:12:56 UTC (rev 71004)
+++ PKGBUILD 2010-03-03 02:03:08 UTC (rev 71005)
@@ -5,6 +5,7 @@
pkgname=('php'
'php-cgi'
'php-apache'
+ 'php-embed'
'php-pear'
'php-curl'
'php-enchant'
@@ -21,7 +22,7 @@
'php-tidy'
'php-xsl')
pkgver=5.3.1
-pkgrel=6
+pkgrel=7
_suhosinver=${pkgver}-0.9.8
arch=('i686' 'x86_64')
license=('PHP')
@@ -178,6 +179,16 @@
${phpextensions} || return 1
make || return 1
+ # embed
+ cp -a ${srcdir}/build-php ${srcdir}/build-embed
+ cd ${srcdir}/build-embed
+ ./configure --srcdir=../${pkgbase}-${pkgver} \
+ ${phpconfig} \
+ --enable-embed=shared \
+ --disable-cli \
+ ${phpextensions} || return 1
+ make || return 1
+
# pear
cp -a ${srcdir}/build-php ${srcdir}/build-pear
cd ${srcdir}/build-pear
@@ -230,6 +241,14 @@
install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/php5_module.conf
}
+package_php-embed() {
+ pkgdesc='Embed SAPI for PHP'
+ depends=('php' 'pcre' 'libxml2')
+
+ install -D -m755 ${srcdir}/build-embed/libs/libphp5.so ${pkgdir}/usr/lib/libphp5.so
+ 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')
More information about the arch-commits
mailing list