diff --git a/community/composer/APKBUILD b/community/composer/APKBUILD index b90a20fd284ff3cc1e2db69e440a5613b93e3c11..e2be2e49c50734760d429a59e4d864876c063389 100644 --- a/community/composer/APKBUILD +++ b/community/composer/APKBUILD @@ -2,12 +2,13 @@ # Maintainer: Dave Hall <skwashd@gmail.com> pkgname=composer pkgver=2.1.6 -pkgrel=0 +pkgrel=1 pkgdesc="Dependency manager for PHP" url="https://getcomposer.org/" arch="noarch" license="MIT" -depends="php7 php7-phar php7-curl php7-iconv php7-json php7-mbstring php7-openssl php7-zip" +_php=php8 +depends="$_php $_php-phar $_php-curl $_php-iconv $_php-mbstring $_php-openssl $_php-zip" checkdepends="git" options="net" source="$pkgname-$pkgver.phar::https://getcomposer.org/download/$pkgver/composer.phar" @@ -18,12 +19,15 @@ source="$pkgname-$pkgver.phar::https://getcomposer.org/download/$pkgver/composer check() { cd "$srcdir" - php7 $pkgname-$pkgver.phar -Vn - php7 $pkgname-$pkgver.phar -n diagnose || true # fails as pub-keys are missing + $_php $pkgname-$pkgver.phar -Vn + $_php $pkgname-$pkgver.phar -n diagnose || true # fails as pub-keys are missing } package() { - install -m 0755 -D "$srcdir"/$pkgname-$pkgver.phar "$pkgdir"/usr/bin/$pkgname + install -m 0755 -D "$srcdir"/$pkgname-$pkgver.phar "$pkgdir"/usr/bin/$pkgname.phar + printf "#/bin/sh\n\n/usr/bin/php8 /usr/bin/composer.phar \"\$@\"\n"\ + > "$pkgdir"/usr/bin/$pkgname + chmod +x "$pkgdir"/usr/bin/$pkgname } sha512sums="