PKGBUILD 935 B

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. _pkgname=jsmin
  3. pkgname=(python-jsmin python2-jsmin)
  4. pkgver=2.1.1
  5. pkgdesc="JavaScript minifier"
  6. url="https://bitbucket.org/dcs/jsmin"
  7. license=('MIT')
  8. pkgrel=3
  9. arch=('any')
  10. makedepends=(python{,2}-setuptools)
  11. source=(https://files.pythonhosted.org/packages/90/f2/314a52919a8bbecc17078487df22008aba281032184f797506e7bd060e6b/jsmin-2.1.1.tar.gz)
  12. sha256sums=('582f70f5fef561c8d561271206f45258d0c420eec31a8628914e87c73a2192e1')
  13. package_python-jsmin() {
  14. depends=('python')
  15. cd "$srcdir/$_pkgname-$pkgver"
  16. rm -rf build
  17. python setup.py install --root="$pkgdir" --optimize=1
  18. install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
  19. }
  20. package_python2-jsmin() {
  21. depends=('python2')
  22. cd "$srcdir/$_pkgname-$pkgver"
  23. rm -rf build
  24. python2 setup.py install --root="$pkgdir" --optimize=1
  25. install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
  26. }