PKGBUILD 762 B

123456789101112131415161718192021222324
  1. # Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
  2. # Maintainer: Parabola Hackers <dev@lists.parabola.nu>
  3. _pkgname=jsmin
  4. pkgname=(python-jsmin)
  5. pkgver=3.0.1
  6. pkgrel=1
  7. pkgdesc="JavaScript minifier"
  8. url="https://github.com/tikitu/jsmin/tags"
  9. license=('MIT')
  10. arch=('any')
  11. makedepends=(python-setuptools)
  12. source=("https://github.com/tikitu/jsmin/archive/refs/tags/release-${pkgver}.tar.gz")
  13. sha512sums=('3f7cd9d9383b92c11592b9c0a481670130b669075e3c51d1428e41ce9cecbb2302c7b544ad65e47407829c0b54cd89be5884d23f12d07c71e8bfb661c2403756')
  14. package_python-jsmin() {
  15. depends=('python')
  16. cd "${srcdir}/${_pkgname}-release-${pkgver}"
  17. python setup.py install --root="$pkgdir" --optimize=1
  18. install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
  19. }