diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-20 16:43:10 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-20 16:43:55 +0200 |
commit | a564738bf850eb27fa3ccf94bcd1d82337cda952 (patch) | |
tree | efef7bec5288de573db69e5bb90fab32091dfea9 /testing/composer/APKBUILD | |
parent | 240ed2adb9fb8a702bc3106671c870ca80fd6a54 (diff) | |
download | aports-a564738bf850eb27fa3ccf94bcd1d82337cda952.tar.bz2 aports-a564738bf850eb27fa3ccf94bcd1d82337cda952.tar.xz |
testing/composer: improve abuild
Diffstat (limited to 'testing/composer/APKBUILD')
-rw-r--r-- | testing/composer/APKBUILD | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/testing/composer/APKBUILD b/testing/composer/APKBUILD index a33f8cbfe2..08441c3359 100644 --- a/testing/composer/APKBUILD +++ b/testing/composer/APKBUILD @@ -2,25 +2,18 @@ # Maintainer: Nathan Johnson <nathan@nathanjohnson.info> pkgname=composer pkgver=1.2.0 -_pkgverreal=${pkgver} +_pkgver=$pkgver pkgrel=0 -pkgdesc="Dependency manager for php" +pkgdesc="Dependency manager for PHP" url="https://getcomposer.org/" arch="noarch" license="MIT" depends="php5 php5-phar php5-json" -depends_dev="" -makedepends="$depends_dev $depends" -install="" -subpackages="" -source="${pkgname}-${_pkgverreal}.phar::https://getcomposer.org/download/${_pkgverreal}/${pkgname}.phar" - -builddir="$srcdir" +makedepends="" +source="$pkgname-$_pkgver.phar::https://getcomposer.org/download/$_pkgver/$pkgname.phar" package() { - cd $builddir - mkdir -p ${pkgdir}/usr/bin - install -m 0755 "${pkgname}"-"${_pkgverreal}".phar $pkgdir/usr/bin/"${pkgname}" + install -m 0755 -D "$srcdir"/$pkgname-$_pkgver.phar "$pkgdir"/usr/bin/$pkgname } md5sums="df47dc307fa614daa5a10423bdf4e1bb composer-1.2.0.phar" |