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

David Runge dvzrv at archlinux.org
Sat Nov 21 17:07:33 UTC 2020


    Date: Saturday, November 21, 2020 @ 17:07:33
  Author: dvzrv
Revision: 758502

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-21 17:07:24 UTC (rev 758501)
+++ PKGBUILD	2020-11-21 17:07:33 UTC (rev 758502)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=natsort
-pkgname=python-natsort
-pkgver=7.0.1
-pkgrel=1
-pkgdesc="Simple yet flexible natural sorting in Python"
-arch=('any')
-url="https://github.com/SethMMorton/natsort"
-license=('MIT')
-depends=('python-setuptools')
-checkdepends=('python-pytest-cov' 'python-pytest-mock' 'python-pyflakes'
-'flake8' 'python-hypothesis' 'python-mock')
-optdepends=('python-fastnumbers: more efficient sorting'
-            'python-pyicu: sort in locale dependant manner')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('48bfda8a42b951287d984e38c474b71233d56a578d8bec12e657413b3cdb71dd27103acda8dca359d87efd761e775deff0775a81d8dfa18df24c364921028c2b')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="build:${PYTHONPATH}"
-  pytest -v
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-natsort/repos/community-any/PKGBUILD (from rev 758501, python-natsort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-21 17:07:33 UTC (rev 758502)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=natsort
+pkgname=python-natsort
+pkgver=7.1.0
+pkgrel=1
+pkgdesc="Simple yet flexible natural sorting in Python"
+arch=('any')
+url="https://github.com/SethMMorton/natsort"
+license=('MIT')
+depends=('python-setuptools')
+checkdepends=('python-hypothesis' 'python-mock' 'python-pytest-mock')
+optdepends=('python-fastnumbers: more efficient sorting'
+            'python-pyicu: sort in locale dependant manner')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('41293d70c3dc2214f9dc1c123f31cd7886341ae25c6342ac49f3d53d06ba15ecd8d666f1763fe790848c93668940a81b7e7f1fe896f0b91f180ca557dd922ac3')
+b2sums=('3ab6c977aca40330fac0af9e4be36d973e88d931799b3135a81daf0a475988af5cc2f9abb30ade1498aad07d9c986e514c7c8cdbbb63da195a81dded4f6f25da')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {CHANGELOG.md,README.rst} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list