diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-05-26 12:49:51 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-05-26 12:49:51 -0300 |
commit | d21915a8e1c4130cbd5cf6d0d58ae8448de8b085 (patch) | |
tree | a383814d0c248bb11543ca8a3e7f1a6c721c7455 /libre/python-jsmin | |
parent | 7093cd981cafcf8dcf5619d4c5a7876c9acade4f (diff) | |
parent | de4f0d5e3c54d11f8ef1fa859bc64089924b1bbc (diff) | |
download | abslibre-d21915a8e1c4130cbd5cf6d0d58ae8448de8b085.tar.gz abslibre-d21915a8e1c4130cbd5cf6d0d58ae8448de8b085.tar.bz2 abslibre-d21915a8e1c4130cbd5cf6d0d58ae8448de8b085.zip |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/python-jsmin')
-rw-r--r-- | libre/python-jsmin/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/python-jsmin/PKGBUILD b/libre/python-jsmin/PKGBUILD new file mode 100644 index 000000000..08d7b1a0d --- /dev/null +++ b/libre/python-jsmin/PKGBUILD @@ -0,0 +1,32 @@ +# 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=2 +arch=('any') +makedepends=(python{,2}-setuptools) +source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) +md5sums=('1075751bb9499dc508cc5ff90c5088dc') + +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 +} |