aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: 43faf1d9862349d64bcdf26e785dda04ff62995d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Dave Hall <skwashd@gmail.com>
pkgname=composer
pkgver=2.1.3
pkgrel=0
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"
checkdepends="git"
options="net"
source="$pkgname-$pkgver.phar::https://getcomposer.org/download/$pkgver/composer.phar"

# secfixes:
#   2.0.13-r0:
#     - CVE-2021-29472

check() {
	cd "$srcdir"
	php7 $pkgname-$pkgver.phar -Vn
	php7 $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
}

sha512sums="
6d1ef60038642dcd7d1ed131124adc50748c0ab200c00237e13ce89346c619ecc1090a96447cdbd1eeda7708cfd2a635ac536e79f06737d62fd8b8b81be937fb  composer-2.1.3.phar
"