diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-21 23:26:20 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-21 23:26:20 +0200 |
commit | 8b08403b256f1948d4b2ce9e39ae8d78ec8269ee (patch) | |
tree | a0bec4fdc49bb330a698955272d83a2bc48ecf22 /community/py-yuicompressor/APKBUILD | |
parent | 26fe8e4e8fae932e8afcb21f8d5c1c70cf07ec82 (diff) | |
download | aports-8b08403b256f1948d4b2ce9e39ae8d78ec8269ee.tar.bz2 aports-8b08403b256f1948d4b2ce9e39ae8d78ec8269ee.tar.xz |
community/py-yuicompressor: modernize abuild
Diffstat (limited to 'community/py-yuicompressor/APKBUILD')
-rw-r--r-- | community/py-yuicompressor/APKBUILD | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/community/py-yuicompressor/APKBUILD b/community/py-yuicompressor/APKBUILD index ab185d8da3..105bfc9be8 100644 --- a/community/py-yuicompressor/APKBUILD +++ b/community/py-yuicompressor/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> pkgname=py-yuicompressor -_pkgname=${pkgname/py-/} +_pkgname=${pkgname#py-} pkgver=2.4.8 pkgrel=1 pkgdesc="YUI Compressor is a JavaScript and CSS minifier written in Java." @@ -16,17 +16,15 @@ builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build } package() { mkdir -p "$pkgdir"/usr/bin - # Create unsuffixed symlinks for executables from py3 subpackage. - local name; for name in yuicompressor; do - ln -s $name-3 "$pkgdir"/usr/bin/$name || return 1 - done + # Create unsuffixed symlink for executable from py3 subpackage. + ln -s yuicompressor-3 "$pkgdir"/usr/bin/yuicompressor } _py2() { @@ -49,7 +47,8 @@ _py() { # Add version suffix to executable files. local path; for path in "$subpkgdir"/usr/bin/*; do - mv "$path" "$path-$pyver" || return 1 + mv "$path" "$path-$pyver" done } + sha512sums="8e5dc2d2a4bea68961cbccad0cf6c5411f607f75b1b1b6f351560d6fa9862a124a5d277f7bf8b62261439e45fd32441cd4555b7c902b6bc48df3d5357e43505e py-yuicompressor-2.4.8.tar.gz" |