summaryrefslogtreecommitdiff
path: root/libre/python-jsmin
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-25 23:30:39 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-25 23:30:39 -0400
commit1785d3800f805be0074e735ec3c4b42a1cea70f0 (patch)
treeef6efaf7578cf6bae19f92b4e4934ddf3428c0a4 /libre/python-jsmin
parent200076f2bb86ebe7a541a71946d7723d52f10292 (diff)
Update libre/parabolaweb-utils and dependencies
Diffstat (limited to 'libre/python-jsmin')
-rw-r--r--libre/python-jsmin/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/python-jsmin/PKGBUILD b/libre/python-jsmin/PKGBUILD
new file mode 100644
index 000000000..3045ef6ae
--- /dev/null
+++ b/libre/python-jsmin/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+_pkgname=jsmin
+pkgname=(python-jsmin python2-jsmin)
+pkgver=2.0.9
+pkgdesc="JavaScript minifier"
+url="https://bitbucket.org/dcs/jsmin"
+license=('MIT')
+
+pkgrel=1
+arch=('any')
+makedepends=(python{,2}-setuptools)
+source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
+md5sums=('1075751bb9499dc508cc5ff90c5088dc')
+
+prepare() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ sed -rn 's/^#\s?//p' jsmin/__init__.py > "$srcdir"/license.txt
+}
+
+package_python-jsmin() {
+ depends=('python')
+
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-jsmin() {
+ depends=('python2')
+
+ cd "$srcdir/$_pkgname-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}