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

David Runge dvzrv at archlinux.org
Tue Jun 12 21:06:03 UTC 2018


    Date: Tuesday, June 12, 2018 @ 21:06:02
  Author: dvzrv
Revision: 342705

upgpkg: python-click-log 0.3.2-1

Upgrading to 0.3.2. Switching to pypi upstream. Minor fixes.

Modified:
  python-click-log/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-12 21:02:28 UTC (rev 342704)
+++ PKGBUILD	2018-06-12 21:06:02 UTC (rev 342705)
@@ -1,10 +1,11 @@
+# $Id$
 # Maintainer: David Runge <dave at sleepmap.de>
 # Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
 
 _name=click-log
 pkgname=("python-${_name}" "python2-${_name}")
-pkgver=0.2.1
-pkgrel=3
+pkgver=0.3.2
+pkgrel=1
 pkgdesc="Logging integration for Click"
 arch=("any")
 url="https://pypi.python.org/pypi/click-log"
@@ -11,8 +12,8 @@
 license=("MIT")
 makedepends=("python-setuptools" "python2-setuptools")
 checkdepends=("python-pytest" "python-click" "python2-pytest" "python2-click")
-source=("${_name}-${pkgver}.tar.gz::https://github.com/click-contrib/${_name}/archive/${pkgver}.tar.gz")
-sha512sums=('ea30cf849ebd166f105b36be5991bf4aba38df57b1d6e3d330612d9d252ee1653db9fb14ab902143d96d5ecf2e8902aa5e63e630c8b75daa3c16c788f985ba58')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('8ae5c43d739127367bbcdcf32bfd4b34b2ea1c377948df3b8588e4bfe2b0f5e7a61d1ccc6cb32c77045b15251222866daffa5a7bfb7a907487548784ba345351')
 
 prepare() {
   mv "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
@@ -40,23 +41,23 @@
 
 package_python-click-log() {
   depends=("python-click")
-  cd "${pkgname[0]}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
-  install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname[0]}/LICENSE"
-  install -vDm644 README.rst "${pkgdir}/usr/share/doc/${pkgname[0]}/README.rst"
+  install -vDm 644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
 }
 
 package_python2-click-log() {
   depends=("python2-click")
-  cd "${pkgname[1]}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
   python2 setup.py install --skip-build \
     --optimize=1 \
     --prefix=/usr \
     --root="${pkgdir}"
-  install -vDm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname[1]}/LICENSE"
-  install -vDm644 README.rst "${pkgdir}/usr/share/doc/${pkgname[1]}/README.rst"
+  install -vDm 644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
 }
 



More information about the arch-commits mailing list