[arch-commits] Commit in python-pytz/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:35:22 UTC 2019
Date: Friday, October 25, 2019 @ 15:35:22
Author: felixonmars
Revision: 519104
archrelease: copy trunk to community-staging-any
Added:
python-pytz/repos/community-staging-any/
python-pytz/repos/community-staging-any/PKGBUILD
(from rev 519103, python-pytz/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-pytz/repos/community-staging-any/PKGBUILD (from rev 519103, python-pytz/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:35:22 UTC (rev 519104)
@@ -0,0 +1,49 @@
+# Maintainer: Stefan Husmann <stefan-husmann at t-online.de>
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: William Rea <sillywilly at gmail.com>
+
+pkgname=('python-pytz' 'python2-pytz')
+pkgver=2019.3
+pkgrel=2
+arch=('any')
+url="https://pypi.python.org/pypi/pytz"
+license=("MIT")
+makedepends=('python' 'python2')
+source=("https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz")
+md5sums=('c3d84a465fc56a4edd52cca8873ac0df')
+validpgpkeys=('C7ECC365AB6F255E1EB9BA1701FA998FBAC6374A')
+
+build(){
+ cp -rf pytz-$pkgver pytz2-$pkgver
+}
+
+check(){
+ cd pytz-$pkgver/pytz/tests
+
+ python3 test_tzinfo.py
+ python2 test_tzinfo.py
+}
+
+package_python-pytz(){
+ depends=('python')
+ pkgdesc="Cross platform time zone library for Python"
+
+ cd pytz-$pkgver
+
+ python3 setup.py install --root=$pkgdir/
+
+ install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+
+package_python2-pytz(){
+ depends=('python2')
+ pkgdesc="Cross platform time zone library for Python"
+
+ cd pytz2-$pkgver
+
+ python2 setup.py install --root="$pkgdir/"
+
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list