aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/php7-gmagick/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/php7-gmagick/APKBUILD b/community/php7-gmagick/APKBUILD
new file mode 100644
index 0000000000..f8671bb442
--- /dev/null
+++ b/community/php7-gmagick/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=php7-gmagick
+_pkgreal=gmagick
+pkgver=2.0.5_rc1
+_pkgver=${pkgver/_rc/RC}
+pkgrel=1
+pkgdesc="PHP7 bindings to the GraphicsMagick library"
+url="http://pecl.php.net/package/gmagick"
+arch="all"
+license="PHP"
+depends="ghostscript-fonts"
+makedepends="graphicsmagick-dev autoconf libtool php7-dev"
+source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$_pkgver"
+
+build() {
+ cd "$builddir"
+ phpize7
+ ./configure \
+ --prefix=/usr \
+ --with-php-config=/usr/bin/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=$_pkgreal.so" "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+}
+
+sha512sums="217ad5ba2df7f6092fbb2dc13918f85658793033ba03550657be1ff44dc51ae0533a7ae86c0b14c60e8a0dc8fe9af16daffa01cc50a4096d269ad55d60a3dfb8 gmagick-2.0.5RC1.tgz"