[arch-commits] Commit in python-natsort/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Tue Jan 28 08:24:00 UTC 2020
Date: Tuesday, January 28, 2020 @ 08:24:00
Author: dvzrv
Revision: 557462
archrelease: copy trunk to community-any
Added:
python-natsort/repos/community-any/PKGBUILD
(from rev 557461, python-natsort/trunk/PKGBUILD)
Deleted:
python-natsort/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 42 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-28 08:23:51 UTC (rev 557461)
+++ PKGBUILD 2020-01-28 08:24:00 UTC (rev 557462)
@@ -1,41 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-_name=natsort
-pkgname=python-natsort
-pkgver=7.0.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-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=('a6dde0eca7a8f51859c43b5c928c354849be6256fdfa1fea371920458b076f609746316b640317b3be8eea441ca76e08a4c99475c0e468c46bee35ec5779d3c7')
-
-prepare() {
- mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="build:${PYTHONPATH}"
- py.test
-}
-
-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 557461, python-natsort/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-28 08:24:00 UTC (rev 557462)
@@ -0,0 +1,42 @@
+# 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}"
+}
More information about the arch-commits
mailing list