diff options
author | Mickaël Thomas | 2016-01-14 02:38:56 +0100 |
---|---|---|
committer | Mickaël Thomas | 2016-01-14 02:38:56 +0100 |
commit | 79ef439ae269d324434ce5f1d109907256488772 (patch) | |
tree | 7f4d74483c9da635627dddbef0e0e6711eb67add /PKGBUILD | |
parent | d9a54966b52e1cabf22735b23d2ba3f1d152db8b (diff) | |
download | aur-79ef439ae269d324434ce5f1d109907256488772.tar.gz |
Make use of --program-suffix configure flag and substitue include_dir
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -74,6 +74,7 @@ build() { --libdir=/usr/lib/${pkgbase} \ --datarootdir=/usr/share/${pkgbase} \ --datadir=/usr/share/${pkgbase} \ + --program-suffix=${pkgbase#php} \ --with-layout=GNU \ --with-config-file-path=/etc/${pkgbase} \ --with-config-file-scan-dir=/etc/${pkgbase}/conf.d \ @@ -251,17 +252,15 @@ package_php56() { ln -sf phar.${pkgbase/php/phar} ${pkgdir}/usr/bin/${pkgbase/php/phar} # rename executables - mv ${pkgdir}/usr/bin/{php,${pkgbase}} mv ${pkgdir}/usr/bin/phar.{phar,${pkgbase/php/phar}} - mv ${pkgdir}/usr/bin/{php-config,${pkgbase}-config} - mv ${pkgdir}/usr/bin/{phpize,${pkgbase/php/phpize}} # rename man pages mv ${pkgdir}/usr/share/man/man1/{phar,${pkgbase/php/phar}}.1 - mv ${pkgdir}/usr/share/man/man1/{php,${pkgbase}}-config.1 - mv ${pkgdir}/usr/share/man/man1/{php,${pkgbase}}.1 mv ${pkgdir}/usr/share/man/man1/phar.{phar,${pkgbase/php/phar}}.1 - mv ${pkgdir}/usr/share/man/man1/{phpize,${pkgbase/php/phpize}}.1 + + # fix paths in executables + sed -i "/^includedir=/c \includedir=/usr/include/${pkgbase}" ${pkgdir}/usr/bin/${pkgbase/php/phpize} + sed -i "/^include_dir=/c \include_dir=/usr/include/${pkgbase}" ${pkgdir}/usr/bin/${pkgbase/php/php-config} } package_php56-cgi() { @@ -277,6 +276,7 @@ package_php56-apache() { depends=("${pkgbase}" 'apache') provides=("${_pkgbase}-apache=$pkgver") backup=("etc/httpd/conf/extra/${pkgbase}_module.conf") + install='php-apache.install' install -D -m755 ${srcdir}/build-apache/libs/libphp5.so ${pkgdir}/usr/lib/httpd/modules/lib${pkgbase}.so install -D -m644 ${srcdir}/apache.conf ${pkgdir}/etc/httpd/conf/extra/${pkgbase}_module.conf |