aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-03-26 02:26:06 +0300
committerAndy Postnikov <apostnikov@gmail.com>2018-03-26 15:51:01 +0300
commitc638ae95d51c6cdf2077c78c4cfd85fe46e0ffaf (patch)
tree1d9f0eb9cbb3d66c69a094d75dc87d31f60e3d48 /community
parentfaa4a372fb2be8cac845c38f966538c9e01bafb8 (diff)
downloadaports-c638ae95d51c6cdf2077c78c4cfd85fe46e0ffaf.tar.gz
aports-c638ae95d51c6cdf2077c78c4cfd85fe46e0ffaf.tar.bz2
aports-c638ae95d51c6cdf2077c78c4cfd85fe46e0ffaf.tar.xz
testing/php7-gmagick: move to community
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"