aboutsummaryrefslogtreecommitdiffstats
path: root/community/php5-apcu/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/php5-apcu/APKBUILD')
-rw-r--r--community/php5-apcu/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/php5-apcu/APKBUILD b/community/php5-apcu/APKBUILD
new file mode 100644
index 0000000000..4059d7cc49
--- /dev/null
+++ b/community/php5-apcu/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+_php=php5
+pkgname=${_php}-apcu
+_pkgreal=apcu
+# release 5 is php7+
+pkgver=4.0.11
+_pkgver=${pkgver/_rc/RC}
+pkgrel=1
+pkgdesc="PHP extension APC User Cache"
+url="http://pecl.php.net/package/$_pkgreal"
+arch="all"
+license="PHP"
+depends=
+pecldepends="${_php}-dev autoconf"
+makedepends="$pecldepends pcre-dev"
+install=""
+subpackages=""
+source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
+
+_builddir="$srcdir"/$_pkgreal-$_pkgver
+
+build() {
+ cd "$_builddir"
+ phpize || return 1
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make INSTALL_ROOT="$pkgdir"/ install || return 1
+ install -d "$pkgdir"/etc/$_php/conf.d || return 1
+ echo "extension=$_pkgreal.so" > "$pkgdir"/etc/$_php/conf.d/$_pkgreal.ini
+}
+
+md5sums="13c0c0dd676e5a7905d54fa985d0ee62 apcu-4.0.11.tgz"
+sha256sums="454f302ec13a6047ca4c39e081217ce5a61bbea815aec9c1091fb849e70b4d00 apcu-4.0.11.tgz"
+sha512sums="e3b97066240e33850419e96f0fd9df0e66ee3b0fa238c418e07ac639d07439e9edfa1696e56a620e33f1ffc0993c57bde585b0c170b22995e7d5c0ae550b7899 apcu-4.0.11.tgz"