[arch-commits] Commit in python-translationstring/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 16:02:51 UTC 2019
Date: Friday, October 25, 2019 @ 16:02:50
Author: felixonmars
Revision: 519340
archrelease: copy trunk to community-staging-any
Added:
python-translationstring/repos/community-staging-any/
python-translationstring/repos/community-staging-any/PKGBUILD
(from rev 519337, python-translationstring/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-translationstring/repos/community-staging-any/PKGBUILD (from rev 519337, python-translationstring/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:02:50 UTC (rev 519340)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-translationstring
+pkgname=('python-translationstring' 'python2-translationstring')
+pkgver=1.3
+pkgrel=4
+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