aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-pecl-ast/APKBUILD
blob: 8cd594d6eb6b8f598237f257187266201e473780 (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
34
35
36
# Contributor: Andy Blyler <andy@blyler.cc>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-ast
_pkgext=ast
_pkgreal=php-ast
pkgver=1.0.6
pkgrel=0
pkgdesc="PHP extension exposing PHP 7 abstract syntax tree - PECL"
url="https://pecl.php.net/package/ast"
arch="all"
license="BSD-3-Clause"
depends="php7-common"
makedepends="php7-dev autoconf re2c"
source="$pkgname-$pkgver.tar.gz::https://pecl.php.net/get/$_pkgext-$pkgver.tgz"
builddir="$srcdir"/$_pkgext-$pkgver
provides="php7-ast=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-ast" # for backward compatibility

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

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

package() {
	make INSTALL_ROOT="$pkgdir/" install
	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini
}

sha512sums="42ee07ee082ea3c6dcfd86ba25aa3d5bf188f277684acd63f5013b3da6b9ea5eafa2ac55a630ffe43aaf2d7366f055a372e61912a426e1413710658b1d9e4013  php7-pecl-ast-1.0.6.tar.gz"