Date: Saturday, November 7, 2015 @ 14:56:02 Author: fyan Revision: 146377
addpkg: python-translationstring 1.3-1 Added: python-translationstring/ python-translationstring/repos/ python-translationstring/trunk/ python-translationstring/trunk/PKGBUILD ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Added: python-translationstring/trunk/PKGBUILD =================================================================== --- python-translationstring/trunk/PKGBUILD (rev 0) +++ python-translationstring/trunk/PKGBUILD 2015-11-07 13:56:02 UTC (rev 146377) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-translationstring +pkgname=('python-translationstring' 'python2-translationstring') +pkgver=1.3 +pkgrel=1 +pkgdesc="Utility library for i18n relied on by various Repoze and Pyramid packages" +arch=('any') +license=('custom:BSD') +url="https://github.com/Pylons/translationstring" +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-nose' 'python2-nose') +source=("git+https://github.com/Pylons/translationstring.git#tag=$pkgver") +sha512sums=('SKIP') + +prepare() { + cp -a translationstring{,-py2} +} + +build() { + cd "$srcdir/translationstring" + python setup.py build + + cd "$srcdir/translationstring-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/translationstring" + nosetests3 + + cd "$srcdir/translationstring-py2" + nosetests2 +} + +package_python-translationstring() { + depends=('python') + + cd translationstring + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" +} + +package_python2-translationstring() { + depends=('python2') + + cd translationstring-py2 + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" +} Property changes on: python-translationstring/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property