opt/php/Pkgfile
Fun 16abcdab67 remove redundant deps
apache: zlib
aterm: xorg-libsm xorg-libxext
conky: glib xorg-libxext
cups-filters: cups
evilwm: xorg-libxext
geeqie: intltool
gtk-engines: intltool
gutenprint: ncurses readline
lcms2: libjpeg-turbo zlib
libpcap: eudev
mc: ncurses
mod_php: libxml2 xz
mutt: ncurses
mysql: ncurses openssl zlib
nfs-utils: eudev
ocaml: zlib
php-fcgi: xz
php-fpm: xz
php: readline xz
ruby: readline
samba: talloc
socat: ncurses
sqlite3: ncurses
sylpheed: openssl
transmission-gtk: curl intltool
2017-11-01 11:39:34 +01:00

53 lines
1.4 KiB
Plaintext

# Description: PHP interpreter, extension modules and support stuff
# URL: http://www.php.net
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libpcre libxml2 curl db gdbm
name=php
version=5.6.32
release=1
source=(http://php.net/distributions/php-$version.tar.xz)
build () {
cd php-$version
local PHP_CONFIG="
--prefix=/usr --mandir=/usr/share/man \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--with-zlib \
--with-pcre-regex=/usr \
--disable-static --disable-debug \
--without-sqlite3 --without-pdo-sqlite \
--without-pear"
local PHP_SHARED="
--enable-dba=shared --with-gdbm --with-db4 \
--with-bz2=shared \
--with-curl=shared \
--with-openssl=shared \
--enable-zip=shared \
--enable-mbstring=shared"
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
$PHP_SHARED \
--enable-cli \
--disable-cgi \
--with-readline
make
make -j1 INSTALL_ROOT=$PKG install
rm $PKG/usr/lib/php/extensions/*.a
ln -sf phar.phar $PKG/usr/bin/phar
sed -i '/^extension_dir/s|=.*$|= "/usr/lib/php/extensions"|' php.ini-*
install -d $PKG/etc/php/conf.d
install -m 644 php.ini-* $PKG/etc/php
# order matters !
printf 'extension=%s\n' {zip,bz2,curl,openssl,dba,mbstring}.so \
> $PKG/etc/php/conf.d/extensions.ini
}