diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-12 16:05:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-01-12 16:05:42 +0000 |
commit | fbaaa5aa75bc5139eb5bdfc64c6c86066396b4f8 (patch) | |
tree | a8f7286f7030bd30ec9aaeb09b93ba7e1e289b73 | |
parent | 9e720ba7d0fe3e6ee723c4a77541dbc2242b45db (diff) | |
download | aports-fbaaa5aa75bc5139eb5bdfc64c6c86066396b4f8.tar.bz2 aports-fbaaa5aa75bc5139eb5bdfc64c6c86066396b4f8.tar.xz |
main/php: upgrade to 5.2.12
also add php as dependency for the extensions. They are not really useful
without php.
-rw-r--r-- | main/php/APKBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/main/php/APKBUILD b/main/php/APKBUILD index bb6914c5..8490dc21 100644 --- a/main/php/APKBUILD +++ b/main/php/APKBUILD @@ -1,9 +1,9 @@ # 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" |