Skip to content

Commit

Permalink
Add php-7.0.20.
Browse files Browse the repository at this point in the history
  • Loading branch information
nubs committed Jul 13, 2017
1 parent 1287fba commit 9b8899f
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
@@ -1,5 +1,7 @@
php710:
build: "php-7.1.0"
php7020:
build: "php-7.0.20"
php7019:
build: "php-7.0.19"
php7018:
Expand Down
17 changes: 17 additions & 0 deletions php-7.0.20/Dockerfile
@@ -0,0 +1,17 @@
FROM nubs/arch-build

MAINTAINER Spencer Rinehart <anubis@overthemonkey.com>

COPY php/PKGBUILD php/*.patch /package/

RUN makepkg --force

USER root

RUN pacman --upgrade --noconfirm --noprogressbar php-*-x86_64.pkg.tar.xz

COPY php.ini /etc/php/php.ini

USER build

CMD ["php"]
12 changes: 12 additions & 0 deletions php-7.0.20/php.ini
@@ -0,0 +1,12 @@
[PHP]
short_open_tag = On

; Environment restictions
memory_limit = 1M
allow_url_fopen = Off
open_basedir = /nonexistant
disable_functions = system,shell_exec,exec,passthru,proc_open,popen,ini_set

error_reporting = E_ALL
display_errors = Off
log_errors = On
41 changes: 41 additions & 0 deletions php-7.0.20/php/PKGBUILD
@@ -0,0 +1,41 @@
pkgname=php
pkgver=7.0.20
pkgrel=1
arch=('i686' 'x86_64')
license=('PHP')
url='http://www.php.net'
source=("http://www.php.net/distributions/php-${pkgver}.tar.gz")
md5sums=('251965824f089328941489407bcb2a26')

build() {
cd ${pkgname}-${pkgver}

./configure --config-cache \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc/php \
--localstatedir=/var \
--with-layout=GNU \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--disable-rpath \
--mandir=/usr/share/man \
--disable-cgi \
--disable-all
make
}

package() {
pkgdesc='An HTML-embedded scripting language'
depends=('pcre' 'bzip2')
backup=('etc/php/php.ini')

cd ${pkgname}-${pkgver}
make -j1 INSTALL_ROOT=${pkgdir} install
install -D -m644 php.ini-production ${pkgdir}/etc/php/php.ini
install -d -m755 ${pkgdir}/etc/php/conf.d/

# remove empty directory
rmdir ${pkgdir}/usr/include/php/include
rmdir ${pkgdir}/var/* ${pkgdir}/var
}

0 comments on commit 9b8899f

Please sign in to comment.