mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-26 17:01:34 +02:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# Contributor: Andy Blyler <andy@blyler.cc>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-pecl-ast
|
|
_pkgext=ast
|
|
_pkgreal=php-ast
|
|
pkgver=1.0.1
|
|
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() {
|
|
cd "$builddir"
|
|
phpize7
|
|
./configure --prefix=/usr \
|
|
--with-php-config=/usr/bin/php-config7
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make INSTALL_ROOT="$pkgdir/" install
|
|
install -d "$pkgdir"/etc/php7/conf.d
|
|
echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini
|
|
}
|
|
|
|
sha512sums="23b90ad066b25ac4ae8953bb44eed5f6978a6616863ce25158d8e84ae403726fe97c6ec0b53fa1da9917626357e6576b89045945661a1d66d1bb4f7cc3064666 php7-pecl-ast-1.0.1.tar.gz"
|