Commit fbaaa5aa authored by Natanael Copa's avatar Natanael Copa

main/php: upgrade to 5.2.12

also add php as dependency for the extensions. They are not really useful
without php.
parent 9e720ba7
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php
pkgver=5.2.11
_suhosinver=${pkgver}-0.9.7
pkgrel=1
pkgver=5.2.12
_suhosinver=5.2.11-0.9.7
pkgrel=0
pkgdesc="The PHP language runtime engine"
url="http://www.php.net/"
license="PHP-3"
......@@ -160,6 +160,10 @@ build() {
sed -i -e '/^BUILD_CGI/s/$(LDFLAGS)/-lpthread $(LDFLAGS)/' Makefile
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make -j1 INSTALL_ROOT="$pkgdir" install || return 1
# fix the extension_dir
sed -i -e "s:^extension_dir.*:extension_dir = \"$_extdir\":" \
......@@ -169,6 +173,7 @@ build() {
_mv_mod() {
pkgdesc="$1 php extension"
depends="php"
local d="$_extdir"
mkdir -p "$subpkgdir/$d"
mv "$pkgdir/$d/${1}.so" "$subpkgdir/$d/" || return 1
......@@ -232,5 +237,5 @@ dev() {
mv "$pkgdir"/usr/bin/phpize "$subpkgdir"/usr/bin/
}
md5sums="286bf34630f5643c25ebcedfec5e0a09 php-5.2.11.tar.bz2
md5sums="5b7077e366c7eeab34da31dd860a1923 php-5.2.12.tar.bz2
8f9de4d97fae6eba163cf3699509a260 suhosin-patch-5.2.11-0.9.7.patch.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment