[arch-commits] Commit in python-hexdump/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sun Nov 15 10:50:12 UTC 2020
Date: Sunday, November 15, 2020 @ 10:50:12
Author: foutrelis
Revision: 754396
Build from PyPI zip archive
Modified:
python-hexdump/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-15 10:50:08 UTC (rev 754395)
+++ PKGBUILD 2020-11-15 10:50:12 UTC (rev 754396)
@@ -2,32 +2,18 @@
# Contributor: knucker <www.knucker[at]gmail.com>
pkgname=python-hexdump
-_pyname=${pkgname/python-/}
-_hghash=396fbd1d0c1e
+_name=${pkgname/python-/}
pkgver=3.3
pkgrel=4
pkgdesc='Library and tool to work with hex and binary data'
-url='https://bitbucket.org/techtonik/hexdump'
+url='https://pypi.org/project/hexdump/'
arch=('any')
license=('Public Domain')
depends=('python')
-checkdepends=('python-tox')
-source=(${pkgname}-${pkgver}.tar.bz2::https://bitbucket.org/techtonik/${_pyname}/get/${pkgver}.tar.bz2)
-sha512sums=('b8f9c2c7ef69cf52572434c1edb529b7bd61e66cc62f1fb8ff32bcf5899502607552a9a1c50deed2e02f3b638744d509dedf588fa1176d79d4c9ec198f650e4d')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.zip)
+sha512sums=('3299f6a29dcf4293616c5ea652397429ee844ca30964ee0fc784fb2a93252b75eb28fb797640e26477eb6b291aa38e14ad5046d8b4488dc4e03bd79b9449898b')
-prepare() {
- cd techtonik-${_pyname}-${_hghash}
- sed -r 's|(py3)[0-9]+|\1|g' -i tox.ini
- sed -r 's|(py2)[0-9]+|\1|g' -i tox.ini
-}
-
-check() {
- cd techtonik-${_pyname}-${_hghash}
- tox
-}
-
package() {
- cd techtonik-${_pyname}-${_hghash}
python setup.py install -O1 --root="${pkgdir}" --prefix=/usr
}
More information about the arch-commits
mailing list