Date: Tuesday, September 4, 2018 @ 12:41:08 Author: foxxx0 Revision: 376624
initial commit after split from python-cherrypy pkgbase Added: python2-cherrypy/ python2-cherrypy/repos/ python2-cherrypy/trunk/ python2-cherrypy/trunk/PKGBUILD ----------+ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) Added: python2-cherrypy/trunk/PKGBUILD =================================================================== --- python2-cherrypy/trunk/PKGBUILD (rev 0) +++ python2-cherrypy/trunk/PKGBUILD 2018-09-04 12:41:08 UTC (rev 376624) @@ -0,0 +1,52 @@ +# Maintainer: Thore Bödecker <[email protected]> +# Contributor: Laurent Soest <[email protected]> +# Contributor: Angel Velasquez <[email protected]> +# Contributor: Kaiting Chen <[email protected]> +# Contributor: Douglas Soares de Andrade <[email protected]> +# Contributor: Armando M. Baratti <[email protected]> +# Contributor: Florian Richter <[email protected]> + +pkgname='python2-cherrypy' +_pkgname="${pkgname#python2-}" +pkgver=17.3.0 +pkgrel=2 +pkgdesc='A pythonic, object-oriented web development framework' +arch=('any') +url='https://cherrypy.org' +license=('BSD') +depends=('python2' 'python2-six' 'python2-cheroot' 'python2-more-itertools' + 'python2-portend' 'python2-jaraco' 'python2-contextlib2' 'python2-zc.lockfile') +makedepends=('python2-setuptools' 'python2-setuptools-scm' 'python2-six' + 'python2-cheroot' 'python2-portend' 'python2-more-itertools' + 'python2-contextlib2' 'python2-zc.lockfile') +checkdepends=('python2-tox') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/v$pkgver.tar.gz") +sha512sums=('779cf604c88104db89a9b3ff51f88fd9e307773c6bca2454ad4909ca9e366f0a895afb037450a87193622ea4a8e2812de924d8472dcf94488a4fe30912e73c09') + +prepare() { + # fix python interpreter for python2 stuff + find "${srcdir}/${_pkgname}-${pkgver}" -type f -name '*.py' \ + -exec sed -i 's|^#!/usr/bin/python$|#!/usr/bin/env python2|1' {} + +} + +build() { + # setuptools wont find version from git tag + export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}" + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 ./setup.py build +} + +check() { + cd "${srcdir}/${_pkgname}-${pkgver}" + tox2 +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + python2 ./setup.py install --root="${pkgdir}" --optimize=1 + mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2" + + install -Dm644 LICENSE.md \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md" +} Property changes on: python2-cherrypy/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
