[arch-commits] Commit in python-cherrypy/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:50:36 UTC 2015
Date: Saturday, September 19, 2015 @ 19:50:36
Author: foutrelis
Revision: 141078
archrelease: copy trunk to community-staging-any
Added:
python-cherrypy/repos/community-staging-any/
python-cherrypy/repos/community-staging-any/PKGBUILD
(from rev 141077, python-cherrypy/trunk/PKGBUILD)
----------+
PKGBUILD | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
Copied: python-cherrypy/repos/community-staging-any/PKGBUILD (from rev 141077, python-cherrypy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 17:50:36 UTC (rev 141078)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Kaiting Chen <kaitocracy at gmail.com>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Armando M. Baratti <amblistas at ajato.com.br>
+# Contributor: Florian Richter <Florian_Richter at gmx.de>
+pkgname=('python-cherrypy' 'python2-cherrypy')
+pkgver=3.6.0
+pkgrel=2
+pkgdesc="A pythonic, object-oriented web development framework"
+arch=('any')
+url="http://www.cherrypy.org"
+license=('BSD')
+makedepends=('python' 'python2')
+source=("https://pypi.python.org/packages/source/C/CherryPy/CherryPy-${pkgver}.tar.gz")
+md5sums=('9772dbee426d656f01a13881e2b139d8')
+
+build() {
+ cp -r CherryPy-${pkgver} CherryPy2-${pkgver}
+
+ cd CherryPy-${pkgver}
+ python ./setup.py build
+
+ cd "${srcdir}/CherryPy2-${pkgver}"
+ sed \
+ -e 's_#! /usr/bin/env python_&2_' \
+ -i cherrypy/cherryd
+ sed \
+ -e 's_#!/usr/bin/python_&2_' \
+ -i cherrypy/test/sessiondemo.py
+ python2 ./setup.py build
+
+}
+
+package_python-cherrypy() {
+ depends=('python')
+
+ cd CherryPy-${pkgver}
+
+ python ./setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 cherrypy/LICENSE.txt \
+ "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.txt"
+}
+
+package_python2-cherrypy() {
+ depends=('python2')
+
+ cd CherryPy2-${pkgver}
+
+ python2 ./setup.py install --root="${pkgdir}" --optimize=1
+ mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2"
+
+ install -Dm644 cherrypy/LICENSE.txt \
+ "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.txt"
+}
+
+check() {
+ cd CherryPy2-${pkgver}
+ python2 ./setup.py check
+
+ cd ../CherryPy-${pkgver}
+ python3 ./setup.py check
+}
More information about the arch-commits
mailing list