aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: a8b8c513b4971ee8439de400f1557b4917426bd6 (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.4
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="
5718c668296159c3e3b2121753ddaf7f3c6b6a1caa7bba2da89d2d79a9d5274845268f3e1edd996acc9b0bbd50cf058727fbd360eb0422f82f5d66a0a31bd018  composer-2.1.4.phar
"