aboutsummaryrefslogtreecommitdiffstats
path: root/testing/composer
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-04 08:34:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-04 08:35:13 +0000
commit8d97e0fe89c3caeba52ffd953c7b7897a0d14a63 (patch)
tree1a191f55f82fc43ff61013fce3d6b803fa1f681b /testing/composer
parentc30c6fbb9e094cba4cd6f2adae8dd8f63776affe (diff)
downloadaports-8d97e0fe89c3caeba52ffd953c7b7897a0d14a63.tar.bz2
aports-8d97e0fe89c3caeba52ffd953c7b7897a0d14a63.tar.xz
testing/composer: clean up
- fix version number - make noarch - use builddir
Diffstat (limited to 'testing/composer')
-rw-r--r--testing/composer/APKBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/composer/APKBUILD b/testing/composer/APKBUILD
index 7773f56e95..81996a72ce 100644
--- a/testing/composer/APKBUILD
+++ b/testing/composer/APKBUILD
@@ -1,12 +1,12 @@
# Contributor: Nathan Johnson <nathan@nathanjohnson.info>
# Maintainer: Nathan Johnson <nathan@nathanjohnson.info>
pkgname=composer
-pkgver=1.0.0
-_pkgverreal=1.0.0-beta1
+pkgver=1.0.0_beta1
+_pkgverreal=${pkgver/_beta/-beta}
pkgrel=0
pkgdesc="Dependency manager for php"
url="https://getcomposer.org/"
-arch="all"
+arch="noarch"
license="MIT"
depends="php php-phar php-json"
depends_dev=""
@@ -15,10 +15,10 @@ install=""
subpackages=""
source="${pkgname}-${_pkgverreal}.phar::https://getcomposer.org/download/${_pkgverreal}/${pkgname}.phar"
-_builddir="$srcdir"
+builddir="$srcdir"
package() {
- cd $_builddir
+ cd $builddir
mkdir -p ${pkgdir}/usr/bin
install -m 0755 "${pkgname}"-"${_pkgverreal}".phar $pkgdir/usr/bin/"${pkgname}"
}