blob: e7a1a0a603763ce75f2f66d7efd46b98560ed25a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=python-opcodes-git
pkgver=r180.b740e24
pkgrel=1
pkgdesc='Python module for instruction sets documentation in a format convenient for tools development (git version)'
arch=('any')
url='https://github.com/Maratyszcza/Opcodes/'
license=('BSD')
depends=('python' 'python-setuptools')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
provides=('python-opcodes')
conflicts=('python-opcodes')
source=('git+https://github.com/Maratyszcza/Opcodes.git')
sha256sums=('SKIP')
pkgver() {
printf 'r%s.%s' "$(git -C Opcodes rev-list --count HEAD)" "$(git -C Opcodes rev-parse --short HEAD)"
}
build() {
cd Opcodes
python -m build --wheel --no-isolation
}
check() {
cd Opcodes
PYTHONPATH="$(pwd)/build/lib" pytest
}
package_python-opcodes-git() {
python -m installer --destdir="$pkgdir" "Opcodes/dist"/*.whl
install -D -m644 Opcodes/license.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|