aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-05-04 01:21:19 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-05-11 13:05:23 +0200
commit1413e46ebbc87a57b2f4943de7b20d57f951f728 (patch)
treee1f1886a5d8d68d86ac0a6ddb8d432459a2c2999 /community/php7
parentf31a5e4ee552502f01a68d05e0cad0377d22de4b (diff)
downloadaports-1413e46ebbc87a57b2f4943de7b20d57f951f728.tar.bz2
aports-1413e46ebbc87a57b2f4943de7b20d57f951f728.tar.xz
community/php7: improve extensions' pkgdesc, load it from CREDIS
This is based on https://github.com/alpinelinux/aports/pull/893 by vakartel.
Diffstat (limited to 'community/php7')
-rw-r--r--community/php7/APKBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/community/php7/APKBUILD b/community/php7/APKBUILD
index 60f1fdc7e8..78b05fad20 100644
--- a/community/php7/APKBUILD
+++ b/community/php7/APKBUILD
@@ -540,7 +540,8 @@ phar() {
_extension() {
local extname="${subpkgname#$pkgname-}"
local extdepends="$(eval "echo \$_depends_$extname")"
- pkgdesc="PHP$_suffix extension: $extname"
+ local extdesc="$(head -n1 "$builddir"/ext/$extname/CREDITS 2>/dev/null ||:)"
+ pkgdesc="PHP$_suffix extension: ${extdesc:-$extname}"
: ${extdepends:=$(_resolve_extension_deps "$extname")}
depends="$depends $extdepends"