aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: 235d3aefbfe9906741e043c08c1c6d764b4b644d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Dave Hall <skwashd@gmail.com>
pkgname=composer
pkgver=1.7.3
pkgrel=0
pkgdesc="Dependency manager for PHP"
url="https://getcomposer.org/"
arch="noarch"
license="MIT"
depends="php7 php7-phar php7-json php7-openssl"
source="$pkgname-$pkgver.phar::https://getcomposer.org/download/$pkgver/$pkgname.phar"

package() {
	install -m 0755 -D "$srcdir"/$pkgname-$pkgver.phar "$pkgdir"/usr/bin/$pkgname
}

check() {
	cd "$srcdir"
	php7 $pkgname-$pkgver.phar -V
}

sha512sums="1233e17ab89fba7183e452bb3e0bd2cee816cba719867498eae6548e5b3b9160f11d18ae0e71ae41e958ae582c8080f961ba819ffae1b0b9ec110ed5cebe925c  composer-1.7.3.phar"