[arch-commits] Commit in python-icalendar/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Sat Jul 14 21:49:59 UTC 2018


    Date: Saturday, July 14, 2018 @ 21:49:59
  Author: dvzrv
Revision: 359474

upgpkg: python-icalendar 4.0.2-1

Upgrading to 4.0.2. Changing source to default pythonhosted.org. Fixing execution of test fix. Minor fixes.

Modified:
  python-icalendar/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-14 21:48:10 UTC (rev 359473)
+++ PKGBUILD	2018-07-14 21:49:59 UTC (rev 359474)
@@ -1,3 +1,4 @@
+# $Id$
 # Maintainer: David Runge <dave at sleepmap.de>
 # Contributor: Daniel M. Capella <polyzen at archlinux.info>
 # Contributor: Sirat18 <aur at sirat18.de>
@@ -6,8 +7,8 @@
 _name=icalendar
 pkgbase=python-icalendar
 pkgname=('python-icalendar' 'python2-icalendar')
-pkgver=4.0.1
-pkgrel=2
+pkgver=4.0.2
+pkgrel=1
 pkgdesc='A parser/generator of iCalendar files (RFC 2445)'
 arch=('any')
 url="https://github.com/collective/icalendar"
@@ -14,13 +15,13 @@
 license=('custom:BSD')
 makedepends=('python-setuptools' 'python2-setuptools')
 checkdepends=('python-dateutil' 'python-pytz' 'python2-dateutil' 'python2-pytz')
-source=("${_name}-${pkgver}.tar.gz::https://github.com/collective/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('98a2f006819f589b9d7b2c9a16e8344092fd6b013f8ad32362a2820f68d352cc67796c8044c4c720e6910bb7d735e035d81b9c1239d7c25b7ec00fcb5c987c0d')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('6dc2d03209fcdd02b095c305e9cd2a1fe22762b368c459d8fcb6cd5d7657673195dcee3014b3b8f521e0a411f96a5643014bbf7b20065c54146332ce130ba682')
 
 prepare() {
-  # Disable failing test (https://github.com/collective/icalendar/issues/260)
-  sed -i 's/test_create_america_new_york/disabled_&/' \
-    "${_name}-${pkgver}"/src/icalendar/tests/test_timezoned.py
+  # Disable failing test: https://github.com/collective/icalendar/issues/260
+  sed -e 's/test_create_america_new_york/disabled_&/' \
+      -i "${_name}-${pkgver}"/src/icalendar/tests/test_timezoned.py
   mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
   cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
 }
@@ -41,29 +42,29 @@
 
 package_python-icalendar() {
   depends=('python-dateutil' 'python-pytz')
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
-  install -t "${pkgdir}/usr/share/doc/${pkgname[0]}/" \
-    -vDm644 {CHANGES,CONTRIBUTING,README}.rst
-  install -vDm644 LICENSE.rst \
-    "${pkgdir}/usr/share/licenses/${pkgname[0]}/LICENSE"
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {CHANGES,CONTRIBUTING,README}.rst
+  install -vDm 644 LICENSE.rst \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
 package_python2-icalendar() {
   depends=('python2-dateutil' 'python2-pytz')
-  cd "${pkgname[1]}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python2 setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
   mv -v "${pkgdir}/usr/bin/${_name}" "${pkgdir}/usr/bin/${_name}2"
-  install -t "${pkgdir}/usr/share/doc/${pkgname[1]}/" \
-    -vDm644 {CHANGES,CONTRIBUTING,README}.rst
-  install -vDm644 LICENSE.rst \
-    "${pkgdir}/usr/share/licenses/${pkgname[1]}/LICENSE"
+  install -t "${pkgdir}/usr/share/doc/${pkgname}/" \
+    -vDm 644 {CHANGES,CONTRIBUTING,README}.rst
+  install -vDm 644 LICENSE.rst \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list