[arch-commits] Commit in python-translationstring/repos (2 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sun Dec 25 18:55:06 UTC 2016
Date: Sunday, December 25, 2016 @ 18:55:05
Author: bpiotrowski
Revision: 202298
archrelease: copy trunk to community-staging-any
Added:
python-translationstring/repos/community-staging-any/
python-translationstring/repos/community-staging-any/PKGBUILD
(from rev 202297, python-translationstring/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-translationstring/repos/community-staging-any/PKGBUILD (from rev 202297, python-translationstring/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 18:55:05 UTC (rev 202298)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-translationstring
+pkgname=('python-translationstring' 'python2-translationstring')
+pkgver=1.3
+pkgrel=2
+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