aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: 08cd249e76699b716844d280ca5c930f59afa9aa (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
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Dave Hall <skwashd@gmail.com>
pkgname=composer
pkgver=2.0.7
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"

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="dc2ef014d388fdaf635d292ee8d07c52044432fade40b6113b5b58567581af2f4a86e6fe09c6b95c04a92b1258974e53547453601b2404e0c26755f3759a1220  composer-2.0.7.phar"