aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer/APKBUILD
blob: d2668394ac3d92955fcdab0a43806f7cd9488179 (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.6.5
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="a94a9497ad45cf5bfb2cd4669c73f8cd3b86d0d97a13828ee3b48e8675972293cec898bfb977e55cddf26c5261c5e039310b821d2d5eb4fa046ec5e9e317b21e  composer-1.6.5.phar"