aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-vips/APKBUILD
blob: 0a148605d533325fdb071322fb72dce44ba602a5 (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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=php7-pecl-vips
_pkgname=vips
pkgver=1.0.9
pkgrel=1
pkgdesc="PHP extension for interfacing with vips - PECL"
url="https://pecl.php.net/package/vips"
arch="all !s390x" # 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="cdc9cc7aa7b0f88288003a6c24f1fb036490bb477354160e55b8bc5fc7a290558c32dd94ee7d5fb46f5a686742e0e292818c4e74b9fae17bac763e4e28db3f79  php7-pecl-vips-1.0.9.tgz"