aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-imagick
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-01 23:52:07 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-02 01:53:18 +0200
commit5c1365d1626d447b1799202a6b1a25dc9f3b781b (patch)
treef30e3024a35f9df10d80f74332cd94e183b392d4 /community/php7-imagick
parent5c506a893499aad250138b1d2d60624431840dfa (diff)
downloadaports-5c1365d1626d447b1799202a6b1a25dc9f3b781b.tar.bz2
aports-5c1365d1626d447b1799202a6b1a25dc9f3b781b.tar.xz
community/php7-imagick: move from testing
Diffstat (limited to 'community/php7-imagick')
-rw-r--r--community/php7-imagick/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/php7-imagick/APKBUILD b/community/php7-imagick/APKBUILD
new file mode 100644
index 0000000000..4a2b576dd9
--- /dev/null
+++ b/community/php7-imagick/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=php7-imagick
+_pkgreal=imagick
+pkgver=3.4.3
+pkgrel=2
+_phpver=${pkgname#php}
+_phpver=${_phpver%%-*}
+pkgdesc="PHP$_phpver extension: Provides a wrapper to the ImageMagick library"
+url="http://pecl.php.net/package/imagick"
+arch="all"
+license="PHP"
+depends="php$_phpver-common"
+makedepends="php$_phpver-dev autoconf libtool imagemagick-dev pcre-dev"
+subpackages="$pkgname-dev"
+source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ phpize$_phpver
+ ./configure --prefix=/usr --with-php-config=php-config$_phpver
+ make
+}
+
+check() {
+ cd "$builddir"
+
+ # XXX: Some test fails, ignore it for now.
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test || true
+}
+
+package() {
+ local confdir="$pkgdir/etc/php$_phpver/conf.d"
+ cd "$builddir"
+
+ make INSTALL_ROOT="$pkgdir" install
+
+ mkdir -p "$confdir"
+ echo "extension=$_pkgreal.so" > "$confdir"/$_pkgreal.ini
+}
+
+sha512sums="2cb2b856cf83a78d3542cdf7c69554dcc063a0541e9092b24e5e1fbd8928066a4a3de154049d0202c35addbc5055ccfbb5910ae92f2f13da80ddfc025340ddcd imagick-3.4.3.tgz"