[arch-commits] Commit in python-pylev/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Mon May 31 03:48:29 UTC 2021
Date: Monday, May 31, 2021 @ 03:48:29
Author: eschwartz
Revision: 951648
upgpkg: python-pylev 1.4.0-1: upstream release
upstream tags now exist, so use those now.
(PyPI releases still do not have all files)
Modified:
python-pylev/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-31 03:48:17 UTC (rev 951647)
+++ PKGBUILD 2021-05-31 03:48:29 UTC (rev 951648)
@@ -2,10 +2,8 @@
_pkgname=pylev
pkgname=python-pylev
-pkgver=1.3.0
-# PyPI does not have testsuite, Github does not have version tags
-_commit=72e3d490515c3188e2acac9c15ea1b466f9ff938
-pkgrel=6
+pkgver=1.4.0
+pkgrel=1
pkgdesc="A pure Python Levenshtein implementation that's not freaking GPL'd"
arch=('any')
url="https://github.com/toastdriven/${_pkgname}"
@@ -12,24 +10,24 @@
license=('BSD')
depends=('python')
makedepends=('python-setuptools')
-source=("${_pkgname}-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz")
-sha256sums=('f05a9f4eb31355f0536c323df6855a033fd88f4c92bcf23a1802fea4f379aeeb')
-b2sums=('03793e831c8034e31638d9c469fd386d3acac1dae75f2ef2a0af5c38ee5f11e6a7a20d423078cc42c647edec258db79486c01179e4284d93e64cca0bf99badca')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('f7bf8fb939af1457b301a0f16b3e8c3979031e36a852b7f58fa353a33b930780')
+b2sums=('d49e153d308165dcdc06bad94013afa4ccc6d2a6ecff943a2718a8f9ab71bbacb9c0cf8b604dbf0c77322a8d0cbeba5ffaed13531a31210507f144f716f8e740')
build(){
- cd "${srcdir}"/${_pkgname}-${_commit}
+ cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py build
}
check() {
- cd "${srcdir}"/${_pkgname}-${_commit}
+ cd "${srcdir}"/${_pkgname}-${pkgver}
python -m unittest tests
}
package() {
- cd "${srcdir}"/${_pkgname}-${_commit}
+ cd "${srcdir}"/${_pkgname}-${pkgver}
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
More information about the arch-commits
mailing list