aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: 2aa07fae4936ec2d8ac9b58337a3aa84cfa29287 (plain)
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.6.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="ec6ed7f897709a79f39c73d6a373d82516fbd32930070ab073f831c81c813a0cc155a08a0b56257938563f453e567ba4738051ae9956f856e43528b5262c2b3c  composer-1.6.3.phar"