aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-lzf
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-12-21 22:43:00 +0200
committerAndy Postnikov <apostnikov@gmail.com>2018-12-22 22:43:55 +0200
commitbc6c63f977327e67a60a106bcbd94f7f6955fa80 (patch)
tree1e0557575402ad9d9231c83bc2454e8d4b35c4b2 /community/php7-pecl-lzf
parent6c274e465a0b75aed35dfda4b8ab4f5474443841 (diff)
downloadaports-bc6c63f977327e67a60a106bcbd94f7f6955fa80.tar.bz2
aports-bc6c63f977327e67a60a106bcbd94f7f6955fa80.tar.xz
community/php7-pecl-lzf: moved from testing
Diffstat (limited to 'community/php7-pecl-lzf')
-rw-r--r--community/php7-pecl-lzf/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/php7-pecl-lzf/APKBUILD b/community/php7-pecl-lzf/APKBUILD
new file mode 100644
index 0000000000..58cb545fbd
--- /dev/null
+++ b/community/php7-pecl-lzf/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
+# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
+pkgname=php7-pecl-lzf
+_pkgreal=LZF
+_pkgextname=lzf
+pkgver=1.6.7
+pkgrel=0
+pkgdesc="PHP extension handles LZF de/compression - PECL"
+url="https://pecl.php.net/package/LZF"
+arch="all"
+license="PHP"
+depends="php7-common"
+makedepends="php7-dev autoconf re2c"
+source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+builddir="$srcdir"/$_pkgreal-$pkgver
+provides="php7-lzf=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-lzf" # for backward compatibility
+
+build() {
+ cd "$builddir"
+ phpize7
+ ./configure --prefix=/usr --with-php-config=php-config7
+ make
+}
+
+check() {
+ cd "$builddir"
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+}
+
+package() {
+ cd "$builddir"
+ make INSTALL_ROOT="$pkgdir"/ install
+ install -d "$pkgdir"/etc/php7/conf.d
+ echo "extension=$_pkgextname.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini
+}
+
+sha512sums="920a7d3bd0f0c9f1019a3180e38482ead24610a4a235d967d1f4010101e6f777a2450d517f2d3440edb45bb6a7f6d1012124b1b59aa7c34f9a17fdc93613acab LZF-1.6.7.tgz"