[arch-commits] Commit in python-xkbcommon/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Sun Jul 18 15:46:27 UTC 2021
Date: Sunday, July 18, 2021 @ 15:46:26
Author: dvzrv
Revision: 978505
upgpkg: python-xkbcommon 0.4-1: Upgrade to 0.4.
Switch to pypi.org sdist tarball as upstream included all required files.
Modified:
python-xkbcommon/trunk/PKGBUILD
----------+
PKGBUILD | 23 +++++++++--------------
1 file changed, 9 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-07-18 15:38:17 UTC (rev 978504)
+++ PKGBUILD 2021-07-18 15:46:26 UTC (rev 978505)
@@ -2,9 +2,8 @@
_name=xkbcommon
pkgname=python-xkbcommon
-pkgver=0.3
-_commit='62c2d511475a04018cc14f13f660b5f63fd4ec0a' # 0.3
-pkgrel=2
+pkgver=0.4
+pkgrel=1
pkgdesc="Python bindings for libxkbcommon using cffi"
arch=('x86_64')
url="https://github.com/sde1000/python-xkbcommon"
@@ -12,20 +11,16 @@
depends=('python-cffi' 'libxkbcommon')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
-# sdist tarball on pypi misses tests: https://github.com/sde1000/python-xkbcommon/issues/10
-# sdist tarball on pypi misses LICENSE file: https://github.com/sde1000/python-xkbcommon/issues/11
-# upstream has no tags: https://github.com/sde1000/python-xkbcommon/issues/9
-# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-source=("git+https://github.com/sde1000/${pkgname}#commit=${_commit}")
-sha512sums=('SKIP')
-b2sums=('SKIP')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('fb2c272b8229c4457762d95a622f42838a222f715b1882ca41e5733a20a44d2bc1289218f72f24da3cb959b9628e7ceb73327b61263397207fecabbe0e6fce77')
+b2sums=('6e43960a521b6366ded43527b15a7c24ae299f216754d2d582b91c1b2b26c1b9527a6d1e20a09533f00b69a3b0b43b196695304c0b2e83e814660c94c763f30e')
prepare() {
- cd "$pkgname"
+ mv -v "${_name}-${pkgver}" "$pkgname-${pkgver}"
}
build() {
- cd "$pkgname"
+ cd "$pkgname-${pkgver}"
python "${_name}/ffi_build.py"
python setup.py build
}
@@ -33,13 +28,13 @@
check() {
local _py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- cd "$pkgname"
+ cd "$pkgname-${pkgver}"
export PYTHONPATH="build/lib.linux-${CARCH}-${_py_ver}:${PYTHONPATH}"
pytest -v
}
package() {
- cd "$pkgname"
+ cd "$pkgname-${pkgver}"
python setup.py install --skip-build \
--optimize=1 \
--root="${pkgdir}"
More information about the arch-commits
mailing list