blob: e9d7fcc125bfa9442103cbf3aac5c90263637fb2 (
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
36
37
38
39
40
41
42
43
44
|
# Maintainer: Ben Copeland <ben@copeland.me.uk>
pkgname=tuxmake
pkgver=1.28.5
pkgrel=1
pkgdesc="A tool for building Linux kernels across architectures, toolchains, and configurations"
arch=('x86_64' 'aarch64')
url="https://tuxmake.org/"
license=('Apache')
depends=('python' 'docker' 'podman')
makedepends=(
'git'
'python-setuptools'
'python-wheel'
'python-build'
'python-flit'
'python-flit-core'
'python-pytest'
'python-pytest-mock'
'python-installer'
)
optdepends=(
'docker: for containerized builds with docker'
'podman: for containerized builds with podman'
)
source=("https://files.pythonhosted.org/packages/source/t/tuxmake/tuxmake-${pkgver}.tar.gz")
sha256sums=('e87c2cd0c0ceb6ad3e2a884efaf88cc40b1a15c21b88e1f4e4a64956db3201ca')
build() {
cd "$srcdir/$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/$pkgname-$pkgver"
export PYTHONPATH="$srcdir/$pkgname-$pkgver:$PYTHONPATH"
pytest
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|