blob: b94ed0f6970aebc5aa0adebf9422a2aa64144e62 (
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
38
39
40
41
42
43
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=php7-gmagick
_pkgreal=gmagick
pkgver=2.0.2_rc2
_pkgver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="PHP7 bindings to the GraphicsMagick library"
url="http://pecl.php.net/package/gmagick"
arch="all"
license="PHP"
depends=
pecldepends="php7-dev autoconf"
makedepends="$pecldepends graphicsmagick-dev"
install=
subpackages=
source="http://pecl.php.net/get/$_pkgreal-$_pkgver.tgz"
_builddir="$srcdir"/$_pkgreal-$_pkgver
prepare() {
cd "$_builddir"
phpize7 || return 1
}
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--with-php-config=/usr/bin/php-config7 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
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
}
md5sums="0ff20f387d4de26f41565e93bd18e5d0 gmagick-2.0.2RC2.tgz"
sha256sums="7656bd9042c2aae1325b1cb49e55d9e8ec31b911decec33b6f176195ee1d515a gmagick-2.0.2RC2.tgz"
sha512sums="a677a9aa0eec98646f21a8e1dd3be89c567b8393f83a311dcc94597ad02634ae596998867bf647466d46045ae372d8afd699e3694dd28f6274b3b041ebd0c4a7 gmagick-2.0.2RC2.tgz"
|