summaryrefslogtreecommitdiff
path: root/libre/python-jsmin/PKGBUILD
blob: 932fdc6b5838d9d83c034f3b5f2b4933bdbf3d87 (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
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

_pkgname=jsmin
pkgname=(python-jsmin python2-jsmin)
pkgver=2.1.1
pkgdesc="JavaScript minifier"
url="https://bitbucket.org/dcs/jsmin"
license=('MIT')

pkgrel=3
arch=('any')
makedepends=(python{,2}-setuptools)
source=(https://files.pythonhosted.org/packages/90/f2/314a52919a8bbecc17078487df22008aba281032184f797506e7bd060e6b/jsmin-2.1.1.tar.gz)
sha256sums=('582f70f5fef561c8d561271206f45258d0c420eec31a8628914e87c73a2192e1')

package_python-jsmin() {
	depends=('python')

	cd "$srcdir/$_pkgname-$pkgver"
	rm -rf build
	python setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}

package_python2-jsmin() {
	depends=('python2')

	cd "$srcdir/$_pkgname-$pkgver"
	rm -rf build
	python2 setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}