aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2020-12-03 02:41:01 +0200
committerAndy Postnikov <apostnikov@gmail.com>2020-12-03 02:41:01 +0200
commit08148da8b073409c5b3e020136ea1836883ec9e5 (patch)
tree19ff835cd4b644f78fe21b05a38b498d46ae80cc
parent162132b4193b41bf0b1472ec8f116d01aa4777a6 (diff)
downloadaports-08148da8b073409c5b3e020136ea1836883ec9e5.tar.gz
aports-08148da8b073409c5b3e020136ea1836883ec9e5.tar.bz2
aports-08148da8b073409c5b3e020136ea1836883ec9e5.tar.xz
community/php7-pecl-ast: modernize
-rw-r--r--community/php7-pecl-ast/APKBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/community/php7-pecl-ast/APKBUILD b/community/php7-pecl-ast/APKBUILD
index 2bde04df84..6f1c84c349 100644
--- a/community/php7-pecl-ast/APKBUILD
+++ b/community/php7-pecl-ast/APKBUILD
@@ -1,17 +1,17 @@
# Contributor: Andy Blyler <andy@blyler.cc>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-ast
-_pkgreal=ast
+_extname=ast
pkgver=1.0.10
-pkgrel=0
+pkgrel=1
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"
-source="$pkgname-$pkgver.tar.gz::https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
-builddir="$srcdir"/$_pkgreal-$pkgver
+source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
+builddir="$srcdir"/$_extname-$pkgver
provides="php7-ast=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-ast" # for backward compatibility
@@ -23,13 +23,14 @@ build() {
}
check() {
- make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
+ make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
- make INSTALL_ROOT="$pkgdir/" install
- install -d "$pkgdir"/etc/php7/conf.d
- echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+ make INSTALL_ROOT="$pkgdir" install
+ local _confdir="$pkgdir"/etc/php7/conf.d
+ install -d $_confdir
+ echo "extension=$_extname" > $_confdir/$_extname.ini
}
-sha512sums="3f6c31db66a0d18f5d7c80476c324c4f6eb9e52d87c89d2c66dac2b169a3fb3e0428114253819fb7644a595fb71ee37a13cd97bec4e9c0df316855b890b812d2 php7-pecl-ast-1.0.10.tar.gz"
+sha512sums="3f6c31db66a0d18f5d7c80476c324c4f6eb9e52d87c89d2c66dac2b169a3fb3e0428114253819fb7644a595fb71ee37a13cd97bec4e9c0df316855b890b812d2 php-pecl-ast-1.0.10.tar.gz"