aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-vips/APKBUILD
blob: a15ddd5b06b85ef8bbeda8ce75ba9f1ae5da04b8 (plain) (blame)
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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-vips
_pkgname=vips
pkgver=1.0.10
pkgrel=2
pkgdesc="PHP extension for interfacing with vips - PECL"
url="https://pecl.php.net/package/vips"
arch="all !s390x !ppc64le !mips !mips64" # Limited by vips aport
license="MIT"
depends="php7-common"
makedepends="php7-dev autoconf vips-dev"
source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgname-$pkgver.tgz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	phpize7
	./configure --prefix=/usr --with-php-config=php-config7
	make
}

check() {
	make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test
}

package() {
	make INSTALL_ROOT="$pkgdir" install

	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=$_pkgname.so" > "$pkgdir"/etc/php7/conf.d/$_pkgname.ini
}

sha512sums="459f0e426d738128ad3cf1b45d8eeeec17f9919f508973407a76f42392ab2420023d46a9c40e097ceacbce22eb5c4697e4529fe196bc77237a266d8860423ba9  php7-pecl-vips-1.0.10.tgz"