aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php-imagick/APKBUILD
blob: baed8e812ffc08e01f681ef7981414dc9e65754e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=php-imagick
_pkgreal=imagick
pkgver=3.4.0
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP bindings to the ImageMagick library."
url="http://pecl.php.net/package/imagick"
arch="all"
license="PHP"
depends=
pecldepends="php-dev autoconf"
makedepends="$pecldepends imagemagick-dev libtool"
install=""
subpackages=""
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"

_builddir="$srcdir"/$_pkgreal-$_pkgver
build() {
	cd "$_builddir"
	phpize || return 1
	./configure --prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make INSTALL_ROOT="$pkgdir/" install || return 1
	install -d "$pkgdir"/etc/php/conf.d || return 1
	echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php/conf.d/$_pkgreal.ini
	[ -d "$pkgdir"/usr/include ] && rm -fr "$pkgdir"/usr/include
}

md5sums="3790ce247afb5365f23a264d4c3bd6b7  imagick-3.4.0.tgz"
sha256sums="7f20c765c25195734a88ad2c127f2ba62bfc353a61f3abb6f75a3acbc613d1b5  imagick-3.4.0.tgz"
sha512sums="e9819d102cd657b1cbdf911bc61b0987ab131aed65a2d413fe75f24cf5e80b3165d743acae8b166b5df60340312acbb83e56f2f6c263d5062f906c4a7b38ab93  imagick-3.4.0.tgz"