mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 04:05:40 +03:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Andy Blyler <andy@blyler.cc>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-ast
|
|
_pkgext=ast
|
|
_pkgreal=php-ast
|
|
pkgver=0.1.6
|
|
_pkgver=${pkgver/_rc/RC}
|
|
pkgrel=0
|
|
pkgdesc="PHP7 extension exposing PHP 7 abstract syntax tree"
|
|
url="https://github.com/nikic/php-ast"
|
|
arch="all"
|
|
license="BSD"
|
|
depends="php7"
|
|
makedepends="php7-dev autoconf"
|
|
install=""
|
|
subpackages=""
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/nikic/php-ast/archive/v$_pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/$_pkgreal-$_pkgver
|
|
build() {
|
|
cd "$builddir"
|
|
phpize7 || return 1
|
|
./configure --prefix=/usr \
|
|
--with-php-config=/usr/bin/php-config7 \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make INSTALL_ROOT="$pkgdir/" install || return 1
|
|
install -d "$pkgdir"/etc/php7/conf.d || return 1
|
|
echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini
|
|
}
|
|
|
|
sha512sums="f20629ff721dfa47b9ebdf802c28f46f7cbb54bebee9e1fba4f205d6c42445a92895b01e87071914e82b7bd9f03ce28275d4709d35e7ac9fd2b5bed3965dac0f php7-ast-0.1.6.tar.gz"
|