aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-gmagick/APKBUILD
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-10-21 01:47:17 +0300
committerAndy Postnikov <apostnikov@gmail.com>2018-11-12 17:37:18 +0200
commitb33fba5ab4f30a203bb43681eb37704e52b3b596 (patch)
tree21f8ad34a9043a2181462f0cd7f1d81b14276a12 /community/php7-pecl-gmagick/APKBUILD
parent16973debe2b71b852fc663e8b974e345a67c3fac (diff)
downloadaports-b33fba5ab4f30a203bb43681eb37704e52b3b596.tar.gz
aports-b33fba5ab4f30a203bb43681eb37704e52b3b596.tar.bz2
aports-b33fba5ab4f30a203bb43681eb37704e52b3b596.tar.xz
community/php7-pecl-gmagick: renamed from php7-gmagick, modernize, fix license
Diffstat (limited to 'community/php7-pecl-gmagick/APKBUILD')
-rw-r--r--community/php7-pecl-gmagick/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/php7-pecl-gmagick/APKBUILD b/community/php7-pecl-gmagick/APKBUILD
new file mode 100644
index 0000000000..94fa98166c
--- /dev/null
+++ b/community/php7-pecl-gmagick/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=php7-pecl-gmagick
+_pkgreal=gmagick
+pkgver=2.0.5_rc1
+_pkgver=${pkgver/_rc/RC}
+pkgrel=4
+pkgdesc="PHP bindings to the GraphicsMagick library - PECL"
+url="https://pecl.php.net/package/gmagick"
+arch="all"
+license="PHP-3.01"
+depends="php7-common ghostscript-fonts"
+makedepends="graphicsmagick-dev autoconf libtool php7-dev"
+source="https://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$_pkgver"
+provides="php7-gmagick=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-gmagick" # for backward compatibility
+
+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"