aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-vips/APKBUILD
blob: b4a72c460e3b5273e20cf19b2a20b85756d63e84 (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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-vips
_pkgname=vips
pkgver=1.0.10
pkgrel=0
pkgdesc="PHP extension for interfacing with vips - PECL"
url="https://pecl.php.net/package/vips"
arch="all !s390x !ppc64le" # 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() {
        rm -f tests/029.phpt # TODO remove after 8.8.4 release https://github.com/libvips/php-vips-ext/issues/33
        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"