aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-gmagick
diff options
context:
space:
mode:
authorValery Kartel <valery.kartel@gmail.com>2017-02-12 22:39:53 +0200
committerLeonardo Arena <rnalrd@alpinelinux.org>2017-02-13 07:48:18 +0000
commit5c06a4980ea3a26d415490e798122c7a2d6ab7c3 (patch)
treea0fd0bee93ec1e34cadd53acc4d7dc02eb5345c6 /testing/php7-gmagick
parent8cf64f990d9d652084e6e8bccedc03f8a0a1eef7 (diff)
downloadaports-5c06a4980ea3a26d415490e798122c7a2d6ab7c3.tar.bz2
aports-5c06a4980ea3a26d415490e798122c7a2d6ab7c3.tar.xz
testing/php7-gmagick: fixes in APKBUILD
Diffstat (limited to 'testing/php7-gmagick')
-rw-r--r--testing/php7-gmagick/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/testing/php7-gmagick/APKBUILD b/testing/php7-gmagick/APKBUILD
index 800a7aa065..39c44724a3 100644
--- a/testing/php7-gmagick/APKBUILD
+++ b/testing/php7-gmagick/APKBUILD
@@ -4,7 +4,7 @@ pkgname=php7-gmagick
_pkgreal=gmagick
pkgver=2.0.4_rc1
_pkgver=${pkgver/_rc/RC}
-pkgrel=2
+pkgrel=3
pkgdesc="PHP7 bindings to the GraphicsMagick library"
url="http://pecl.php.net/package/gmagick"
arch="all"
@@ -13,17 +13,18 @@ depends=
makedepends="graphicsmagick-dev autoconf libtool php7-dev"
install=
subpackages=
-source="http://pecl.php.net/get/gmagick-$_pkgver.tgz"
-
-builddir="$srcdir"/gmagick-$_pkgver
+source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$_pkgver"
prepare() {
+ default_prepare || return 1
+
cd "$builddir"
phpize7 || return 1
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--prefix=/usr \
--with-php-config=/usr/bin/php-config7 \
@@ -33,10 +34,10 @@ build() {
package() {
cd "$builddir"
- make INSTALL_ROOT="$pkgdir/" install || return 1
+ make INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php7/conf.d || return 1
echo "extension=$_pkgreal.so" > \
- "$pkgdir"/etc/php7/conf.d/10_$_pkgreal.ini
+ "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
}
md5sums="75bd382e666033dbb7a8fab9088dc827 gmagick-2.0.4RC1.tgz"