# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>

_pkgname=jsmin
pkgname=(python-jsmin)
pkgver=3.0.1
pkgrel=1
pkgdesc="JavaScript minifier"
url="https://github.com/tikitu/jsmin/tags"
license=('MIT')
arch=('any')
makedepends=(python-setuptools)
source=("https://github.com/tikitu/jsmin/archive/refs/tags/release-${pkgver}.tar.gz")
sha512sums=('3f7cd9d9383b92c11592b9c0a481670130b669075e3c51d1428e41ce9cecbb2302c7b544ad65e47407829c0b54cd89be5884d23f12d07c71e8bfb661c2403756')

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

	cd "${srcdir}/${_pkgname}-release-${pkgver}"

	python setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
