[arch-commits] Commit in python-mimerender/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 17:07:03 UTC 2015


    Date: Saturday, September 19, 2015 @ 19:07:03
  Author: fyan
Revision: 141028

archrelease: copy trunk to community-staging-any

Added:
  python-mimerender/repos/community-staging-any/
  python-mimerender/repos/community-staging-any/PKGBUILD
    (from rev 141027, python-mimerender/trunk/PKGBUILD)

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

Copied: python-mimerender/repos/community-staging-any/PKGBUILD (from rev 141027, python-mimerender/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 17:07:03 UTC (rev 141028)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pypiname=mimerender
+pkgbase=python-$_pypiname
+pkgname=(python-$_pypiname python2-$_pypiname)
+pkgver=0.5.5
+pkgrel=2
+pkgdesc="Transparently select a render function for an HTTP request handler's result"
+arch=('any')
+url="https://github.com/martinblech/mimerender"
+license=('MIT')
+makedepends=('python-mimeparse' 'python2-mimeparse' 'python-setuptools' 'python2-setuptools')
+source=("$_pypiname-$pkgver.tar.gz::https://github.com/martinblech/$_pypiname/archive/v$pkgver.tar.gz")
+sha512sums=('e0788a6844bf189712b9107dd8f411af5e6b710e9d1e35d65d0ae43a058e4f81d3b6842ead70ba644080350788c493e01c38e139d0f505c52581e50cfe3ed789')
+
+prepare() {
+  cp -a $_pypiname-$pkgver{,-py2}
+}
+
+package_python-mimerender() {
+  depends=('python-mimeparse')
+
+  cd $_pypiname-$pkgver
+  python setup.py install -O1 --root "$pkgdir"
+}
+
+package_python2-mimerender() {
+  depends=('python2-mimeparse')
+
+  cd $_pypiname-$pkgver-py2
+  python2 setup.py install -O1 --root "$pkgdir"
+}



More information about the arch-commits mailing list