[arch-commits] Commit in python-tzlocal/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Tue Aug 13 09:24:47 UTC 2019


    Date: Tuesday, August 13, 2019 @ 09:24:47
  Author: dvzrv
Revision: 499053

archrelease: copy trunk to community-any

Added:
  python-tzlocal/repos/community-any/PKGBUILD
    (from rev 499052, python-tzlocal/trunk/PKGBUILD)
Deleted:
  python-tzlocal/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  142 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 71 insertions(+), 71 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-13 09:24:41 UTC (rev 499052)
+++ PKGBUILD	2019-08-13 09:24:47 UTC (rev 499053)
@@ -1,71 +0,0 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
-# Contributor: Étienne Deparis <etienne [at] depar.is>
-# Contributor: Patrice Peterson <runiq at archlinux dot us>
-# Contributor: Patrick Burroughs <celticmadman at gmail dot com>
-
-_name=tzlocal
-pkgbase=python-tzlocal
-pkgname=("python-tzlocal" "python2-tzlocal")
-pkgver=1.5.1
-pkgrel=4
-pkgdesc="Tzinfo object for the local timezone"
-arch=('any')
-url="https://pypi.python.org/pypi/tzlocal"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-mock' 'python2-mock')
-source=("${_name}-${pkgver}.tar.gz::https://github.com/regebro/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('30dd1e3973c6fa0e0bde5a0365223506032177e96f997116edfe1fbdcff25cd735c90f205f0b95359a095749f1d1ac077903201533d460a72277891174cc1975')
-
-prepare() {
-  mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
-  cp -a "${pkgname}-${pkgver}" "${pkgname[1]}-${pkgver}"
-}
-
-build() {
-  cd "${pkgname[0]}-${pkgver}"
-  python setup.py build
-  cd ../"${pkgname[1]}-${pkgver}"
-  python2 setup.py build
-}
-
-check() {
-  cd "${pkgname[0]}-${pkgver}"
-  python setup.py test
-  cd ../"${pkgname[1]}-${pkgver}"
-  python2 setup.py test
-}
-
-package_python-tzlocal() {
-  depends=('python-pytz')
-  cd "${pkgname[0]}-${pkgver}"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # license
-  install -vDm644 LICENSE.txt \
-    "${pkgdir}/usr/share/licenses/${pkgname[0]}/LICENSE"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}" \
-    -vDm644 {CHANGES.txt,README.rst}
-}
-
-package_python2-tzlocal() {
-  depends=('python2-pytz')
-  cd "${pkgname[1]}-${pkgver}"
-  python2 setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # license
-  install -vDm644 LICENSE.txt \
-    "${pkgdir}/usr/share/licenses/${pkgname[1]}/LICENSE"
-  # docs
-  install -t "${pkgdir}/usr/share/doc/${pkgname[1]}" \
-    -vDm644 {CHANGES.txt,README.rst}
-}
-
-# vim:set ts=2 sw=2 et:
-

Copied: python-tzlocal/repos/community-any/PKGBUILD (from rev 499052, python-tzlocal/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-13 09:24:47 UTC (rev 499053)
@@ -0,0 +1,71 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+# Contributor: Étienne Deparis <etienne [at] depar.is>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+# Contributor: Patrick Burroughs <celticmadman at gmail dot com>
+
+_name=tzlocal
+pkgbase=python-tzlocal
+pkgname=("python-tzlocal" "python2-tzlocal")
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Tzinfo object for the local timezone"
+arch=('any')
+url="https://github.com/regebro/tzlocal"
+license=('MIT')
+makedepends=('python-pytz' 'python-setuptools' 'python2-pytz' 'python2-setuptools')
+checkdepends=('python-mock' 'python2-mock')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('b72487f791df1dda7370ef5de58e524a451bf87a2ad5ce9d365591fb45af1e080499956d9b19410aeacdf3013ce09c84cd3ec243e15d3bbbee4cec32685298d9')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "${pkgbase}-${pkgver}"
+  # fix symlink, required for test: https://github.com/regebro/tzlocal/issues/53
+  (
+    cd "${pkgbase}-${pkgver}/tests/test_data/symlink_localtime/etc"
+    ln -sfv ../usr/share/zoneinfo/Africa/Harare localtime
+  )
+}
+
+build() {
+  cd "${pkgbase}-${pkgver}"
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd "${pkgbase}-${pkgver}"
+  python setup.py test
+  python2 setup.py test
+}
+
+package_python-tzlocal() {
+  depends=('python-pytz')
+  cd "${pkgbase}-${pkgver}"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --prefix=/usr \
+                          --root="${pkgdir}"
+  # license
+  install -vDm 644 LICENSE.txt \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # docs
+  install -vDm 644 {CHANGES.txt,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+package_python2-tzlocal() {
+  depends=('python2-pytz')
+  cd "${pkgbase}-${pkgver}"
+  python2 setup.py install --skip-build \
+                           --optimize=1 \
+                           --prefix=/usr \
+                           --root="${pkgdir}"
+  # license
+  install -vDm 644 LICENSE.txt \
+    -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  # docs
+  install -vDm 644 {CHANGES.txt,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list