aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: cc8b33c6c20c6cd980a1e3db7c50196ba59a3efa (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.9.3
pkgrel=0
pkgdesc="Dependency manager for PHP"
url="https://getcomposer.org/"
arch="noarch"
license="MIT"
depends="php7 php7-phar php7-json php7-openssl php7-mbstring php7-iconv"
source="$pkgname-$pkgver.phar::https://getcomposer.org/download/$pkgver/composer.phar"

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

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

sha512sums="9e5f31f48c2cecf337c8c0559e8e8c2df3aea1317778ae38ce9d30995624a6e5565d8cf97f1e340caf1eace892197c96a9d14fb54499f40a003a6ddebc9c032a  composer-1.9.3.phar"