summaryrefslogtreecommitdiff
path: root/libre/python-jsmin
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-26 00:51:03 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-26 00:51:03 -0400
commit8012a1f8e1652c3d12daa4cb8f6e337ec7abea17 (patch)
tree71f37e6d24a8dfe3ff27b7ec6b8a74efa9ef3b20 /libre/python-jsmin
parent45b388afb387ec8398adda3f1ae137c2474e369a (diff)
downloadabslibre-8012a1f8e1652c3d12daa4cb8f6e337ec7abea17.tar.gz
abslibre-8012a1f8e1652c3d12daa4cb8f6e337ec7abea17.tar.bz2
abslibre-8012a1f8e1652c3d12daa4cb8f6e337ec7abea17.zip
fix libre/python-jsmin
Diffstat (limited to 'libre/python-jsmin')
-rw-r--r--libre/python-jsmin/PKGBUILD13
1 files changed, 5 insertions, 8 deletions
diff --git a/libre/python-jsmin/PKGBUILD b/libre/python-jsmin/PKGBUILD
index 3045ef6ae..08d7b1a0d 100644
--- a/libre/python-jsmin/PKGBUILD
+++ b/libre/python-jsmin/PKGBUILD
@@ -7,29 +7,26 @@ pkgdesc="JavaScript minifier"
url="https://bitbucket.org/dcs/jsmin"
license=('MIT')
-pkgrel=1
+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')
-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"
+ rm -rf build
python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ 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 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}