[arch-commits] Commit in python-pytz/trunk (PKGBUILD)
Jelle van der Waa
jelle at nymeria.archlinux.org
Sat Mar 15 13:48:29 UTC 2014
Date: Saturday, March 15, 2014 @ 14:48:29
Author: jelle
Revision: 107251
upgpkg: python-pytz 2014.1-1
Modified:
python-pytz/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-15 13:42:27 UTC (rev 107250)
+++ PKGBUILD 2014-03-15 13:48:29 UTC (rev 107251)
@@ -4,7 +4,7 @@
# Contributor: William Rea <sillywilly at gmail.com>
pkgname=('python-pytz' 'python2-pytz')
-pkgver=2013.9
+pkgver=2014.1
pkgrel=1
arch=('any')
url="http://pypi.python.org/pypi/pytz"
@@ -11,9 +11,14 @@
license=("MIT")
makedepends=('python' 'python2')
source=(http://pypi.python.org/packages/source/p/pytz/pytz-$pkgver.tar.bz2{,.asc})
-md5sums=('ec7076947a46a8a3cb33cbf2983a562c'
+md5sums=('ef8f772d2cbdf5900eeb7c1052e5edf5'
'SKIP')
+build(){
+ cd $srcdir
+ cp -rf pytz-$pkgver pytz2-$pkgver
+}
+
check(){
cd $srcdir/pytz-$pkgver/pytz/tests
@@ -29,10 +34,11 @@
cd $srcdir/pytz-$pkgver
+ # Fix locale https://github.com/ipython/ipython/issues/2057
+ export LC_ALL=en_US.UTF-8
+
python3 setup.py install --root=$pkgdir/
-
-
install -D LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
@@ -41,7 +47,7 @@
depends=('python2')
pkgdesc="Cross platform time zone library for Python"
- cd $srcdir/pytz-$pkgver
+ cd $srcdir/pytz2-$pkgver
# python 2 fix
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' pytz/tzfile.py
More information about the arch-commits
mailing list