aboutsummaryrefslogtreecommitdiffstats
path: root/community/composer
diff options
context:
space:
mode:
authorDave Hall <skwashd@gmail.com>2018-01-21 03:34:53 +1100
committerTimo Teräs <timo.teras@iki.fi>2018-02-07 15:01:58 +0000
commitcb8f4dadc56e2546d40f7e609acb88d670815ac4 (patch)
tree05af2fd80cf8a18425fcbe1a6376d447cbfbf5a9 /community/composer
parentf3a921861b22f2b6aca54b5eff8cc6d5012052c2 (diff)
downloadaports-cb8f4dadc56e2546d40f7e609acb88d670815ac4.tar.bz2
aports-cb8f4dadc56e2546d40f7e609acb88d670815ac4.tar.xz
community/composer: Move to community
Diffstat (limited to 'community/composer')
-rw-r--r--community/composer/APKBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/composer/APKBUILD b/community/composer/APKBUILD
new file mode 100644
index 0000000000..2ab089a710
--- /dev/null
+++ b/community/composer/APKBUILD
@@ -0,0 +1,22 @@
+# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
+# Maintainer: Dave Hall <skwashd@gmail.com>
+pkgname=composer
+pkgver=1.6.2
+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="6706b9ba03e5f1db57285f701e89fc54f2a1b3d6aa64a921699fcd0725a6e80bf659b7aaf7a49fd6a7b3f3521180ea2db2a59282b5b817812635f69d2969d73e composer-1.6.2.phar"