[arch-commits] Commit in python-translationstring/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Nov 7 13:56:25 UTC 2015
Date: Saturday, November 7, 2015 @ 14:56:24
Author: fyan
Revision: 146378
archrelease: copy trunk to community-any
Added:
python-translationstring/repos/community-any/
python-translationstring/repos/community-any/PKGBUILD
(from rev 146377, python-translationstring/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-translationstring/repos/community-any/PKGBUILD (from rev 146377, python-translationstring/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2015-11-07 13:56:24 UTC (rev 146378)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at 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"
+}
More information about the arch-commits
mailing list