[arch-commits] Commit in python-webassets (3 files)

Antonio Rojas arojas at archlinux.org
Sun Dec 21 14:57:27 UTC 2014


    Date: Sunday, December 21, 2014 @ 15:57:26
  Author: arojas
Revision: 124309

archrelease: copy trunk to community-any

Added:
  python-webassets/repos/
  python-webassets/repos/community-any/
  python-webassets/repos/community-any/PKGBUILD
    (from rev 124308, python-webassets/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: python-webassets/repos/community-any/PKGBUILD (from rev 124308, python-webassets/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2014-12-21 14:57:26 UTC (rev 124309)
@@ -0,0 +1,46 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgbase=python-webassets
+pkgname=('python2-webassets' 'python-webassets')
+_pipname=webassets
+pkgver=0.10.1
+pkgrel=1
+pkgdesc="Media asset management for Python, with glue code for various web frameworks."
+arch=(any)
+url="http://github.com/miracle2k/webassets/"
+license=('BSD')
+makedepends=('python2-django' 'python-django' 'python2-setuptools' 'python-setuptools')
+source=("http://pypi.python.org/packages/source/w/${_pipname}/${_pipname}-${pkgver}.tar.gz")
+md5sums=('8007980e0ef38c9a42f577b2b2362e76')
+
+prepare() {
+    cp -R $_pipname-$pkgver python2-$_pipname-$pkgver
+}
+
+package_python2-webassets() {
+depends=('python2-django')
+optdepends=('python2-pillow: support for image manipulation'
+            'python2-nose: required to run tests'
+            'python2-mock: required to run tests')
+
+    cd python2-$_pipname-$pkgver
+    python2 setup.py install --root="$pkgdir/" --optimize=1
+
+    sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' -i "$pkgdir"/usr/lib/python2.7/site-packages/webassets/filter/rjsmin/rjsmin.py
+
+    mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+    install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}
+
+package_python-webassets() {
+depends=('python-django')
+optdepends=('python-pillow: support for image manipulation'
+            'python-nose: required to run tests'
+            'python-mock: required to run tests')
+
+    cd $_pipname-$pkgver 
+    python setup.py install --root="$pkgdir/" --optimize=1
+
+    mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+    install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list