blob: 55523993769cc3c8295a31adfd66bb17d7cd2736 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-yuicompressor
_pkgname=yuicompressor
pkgver=2.4.8
pkgrel=4
pkgdesc="YUI Compressor is a JavaScript and CSS minifier written in Java."
url="https://pypi.python.org/pypi/yuicompressor"
arch="noarch"
license="BSD-3-Clause"
depends="openjdk8-jre-base python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/sprat/yuicompressor/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-yuicompressor" # Backwards compatibility
provides="py-yuicompressor=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
# Add version suffix to executable files.
local path; for path in "$pkgdir"/usr/bin/*; do
mv "$path" "$path"-3
done
# Create unsuffixed symlink for executable from py3 subpackage.
ln -s yuicompressor-3 "$pkgdir"/usr/bin/yuicompressor
}
sha512sums="8e5dc2d2a4bea68961cbccad0cf6c5411f607f75b1b1b6f351560d6fa9862a124a5d277f7bf8b62261439e45fd32441cd4555b7c902b6bc48df3d5357e43505e py3-yuicompressor-2.4.8.tar.gz"
|