mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-08 22:11:58 +02:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Contributor: Andy Blyler <andy@blyler.cc>
|
|
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
|
|
pkgname=php7-ast
|
|
_pkgext=ast
|
|
_pkgreal=php-ast
|
|
pkgver=0.1.4
|
|
_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
|
|
}
|
|
|
|
md5sums="75b75aa18edef37c06de3ba6ef496f36 php7-ast-0.1.4.tar.gz"
|
|
sha256sums="082380202aecca3709b6b67121024f46c06ed5e00ff966f11523ab853491ed54 php7-ast-0.1.4.tar.gz"
|
|
sha512sums="c3976a768a971cfe76fb7f20089d896a52464b7f9567c936d0060407de5467d1eec3afc998f3ee4ca801c1bb063d3b71032219896e2d751a4263dfb62b34d134 php7-ast-0.1.4.tar.gz"
|