123456789101112131415161718192021222324252627282930313233 |
- # 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
- }
|