summaryrefslogtreecommitdiff
path: root/libre/python-jsmin/PKGBUILD
blob: 0708b00c7839eb86287486c92e76b8704ccc97f7 (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=2
arch=('any')
makedepends=(python{,2}-setuptools)
source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
md5sums=('7facb7cc42bbd35831752f65d0fdca6d')

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
}