diff options
Diffstat (limited to 'abs/core/php/PKGBUILD')
-rw-r--r-- | abs/core/php/PKGBUILD | 55 |
1 files changed, 39 insertions, 16 deletions
diff --git a/abs/core/php/PKGBUILD b/abs/core/php/PKGBUILD index d20dc55..cccb505 100644 --- a/abs/core/php/PKGBUILD +++ b/abs/core/php/PKGBUILD @@ -11,6 +11,7 @@ pkgname=('php' 'php-pear' 'php-enchant' 'php-gd' + 'php-imap' 'php-intl' 'php-ldap' 'php-mcrypt' @@ -22,19 +23,22 @@ pkgname=('php' 'php-sqlite' 'php-tidy' 'php-xsl') -pkgver=5.6.3 -pkgrel=3 +pkgver=5.6.12 +pkgrel=2 arch=('i686' 'x86_64') license=('PHP') url='http://www.php.net' -makedepends=('apache' 'imap' 'postgresql-libs' 'libldap' 'postfix' +makedepends=('apache' 'c-client' 'postgresql-libs' 'libldap' 'postfix' 'sqlite' 'unixodbc' 'net-snmp' 'libzip' 'enchant' 'file' 'freetds' 'libmcrypt' 'tidyhtml' 'aspell' 'libltdl' 'gd' 'icu' 'curl' 'libxslt' 'openssl' 'db' 'gmp' 'systemd') +checkdepends=('procps-ng') source=("http://www.php.net/distributions/${pkgbase}-${pkgver}.tar.xz" "http://www.php.net/distributions/${pkgbase}-${pkgver}.tar.xz.asc" 'php.ini.patch' 'apache.conf' 'php-fpm.conf.in.patch' 'logrotate.d.php-fpm' 'php-fpm.service' 'php-fpm.tmpfiles') +validpgpkeys=('6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3' + '0BD78B5F97500D450838F95DFE857D9A90D90EC1') prepare() { cd ${srcdir}/${pkgbase}-${pkgver} @@ -94,6 +98,7 @@ build() { --with-icu-dir=/usr \ --with-imap-ssl \ --with-imap=shared \ + --with-kerberos=/usr \ --with-jpeg-dir=/usr \ --with-vpx-dir=/usr \ --with-ldap=shared \ @@ -203,19 +208,28 @@ build() { make } -# check() { -# cd ${srcdir}/build-php -# export SNMP_TIMEOUT=1 -# export SNMP_RETRIES=0 -# export NO_INTERACTION=1 -# make test -# echo -# } +check() { + # tests on i686 fail + [[ $CARCH == 'i686' ]] && return + + cd ${srcdir}/build-php + + export REPORT_EXIT_STATUS=1 + export NO_INTERACTION=1 + export SKIP_ONLINE_TESTS=1 + export SKIP_SLOW_TESTS=1 + + sapi/cli/php -n \ + ${srcdir}/${pkgbase}-${pkgver}/run-tests.php -n -P \ + ${srcdir}/${pkgbase}-${pkgver}/{Zend,ext/{date,pcre,spl,standard},sapi/cli} + + echo +} package_php() { pkgdesc='An HTML-embedded scripting language' depends=('pcre' 'libxml2' 'curl' 'libzip' 'php-gd' 'php-mcrypt') - backup=('etc/php/php.ini') + #backup=('etc/php/php.ini') install='php.install' cd ${srcdir}/build-php @@ -228,9 +242,11 @@ package_php() { # remove static modules rm -f ${pkgdir}/usr/lib/php/modules/*.a # remove modules provided by sub packages - rm -f ${pkgdir}/usr/lib/php/modules/{enchant,gd,intl,ldap,mcrypt,mssql,odbc,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl}.so + rm -f ${pkgdir}/usr/lib/php/modules/{enchant,gd,imap,intl,ldap,mcrypt,mssql,odbc,pdo_odbc,pgsql,pdo_pgsql,pspell,snmp,sqlite3,pdo_sqlite,tidy,xsl}.so # remove empty directory rmdir ${pkgdir}/usr/include/php/include + # fix broken link + ln -sf phar.phar ${pkgdir}/usr/bin/phar } package_php-cgi() { @@ -303,6 +319,13 @@ package_php-gd() { install -D -m755 ${srcdir}/build-php/modules/gd.so ${pkgdir}/usr/lib/php/modules/gd.so } +package_php-imap() { + pkgdesc='imap module for PHP' + depends=('php' 'c-client') + + install -D -m755 ${srcdir}/build-php/modules/imap.so ${pkgdir}/usr/lib/php/modules/imap.so +} + package_php-intl() { pkgdesc='intl module for PHP' depends=('php' 'icu') @@ -382,11 +405,11 @@ package_php-xsl() { install -D -m755 ${srcdir}/build-php/modules/xsl.so ${pkgdir}/usr/lib/php/modules/xsl.so } -md5sums=('7635f344145a4edd7dff6ecec795aaea' +md5sums=('f2cc602602eb2b121779f2c4b8bacaba' 'SKIP' - 'b1088bdc55787f55019a2853e28dff84' + '943f882a55c0a6a7b3e5616c7dbbd7a8' 'dec2cbaad64e3abf4f0ec70e1de4e8e9' - '6bc1fc4ceee039d21ff3b56aa845cc5a' + '16b5e2e4da59f15bea4c2db78a7bc8dc' '25bc67ad828e8147a817410b68d8016c' 'cc2940f5312ba42e7aa1ddfab74b84c4' 'c60343df74f8e1afb13b084d5c0e47ed') |