[arch-commits] Commit in python2-paste/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at nymeria.archlinux.org
Tue Nov 26 02:53:01 UTC 2013


    Date: Tuesday, November 26, 2013 @ 03:53:01
  Author: fyan
Revision: 101456

archrelease: copy trunk to community-any

Added:
  python2-paste/repos/community-any/
  python2-paste/repos/community-any/PKGBUILD
    (from rev 101454, python2-paste/trunk/PKGBUILD)

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

Copied: python2-paste/repos/community-any/PKGBUILD (from rev 101454, python2-paste/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2013-11-26 02:53:01 UTC (rev 101456)
@@ -0,0 +1,32 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: David Campbell <davekong at archlinux.us>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgname=python2-paste
+pkgver=1.7.5.1
+pkgrel=3
+pkgdesc="Tools for using a Web Server Gateway Interface stack."
+arch=('any')
+url="http://pythonpaste.org/index.html"
+license=('MIT')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("http://pypi.python.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz")
+optdepends=('python2-flup: WSGI utilities')
+md5sums=('7ea5fabed7dca48eb46dc613c4b6c4ed')
+
+prepare() {
+  cd Paste-${pkgver}
+  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      $(find . -name '*.py')
+}
+
+package() {
+  cd Paste-${pkgver}
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -Dm644 docs/license.txt "${pkgdir}/usr/share/licenses/$pkgname/license.txt"
+  chmod 644 ${pkgdir}/usr/lib/python*/site-packages/paste/evalexception/media/MochiKit.packed.js
+}




More information about the arch-commits mailing list