-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtuxmake.PKGBUILD
More file actions
40 lines (32 loc) · 1.03 KB
/
tuxmake.PKGBUILD
File metadata and controls
40 lines (32 loc) · 1.03 KB
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
pkgname=tuxmake
pkgver=1.40.0
pkgrel=1
pkgdesc='Thin wrapper to build Linux kernels'
url='https://tuxmake.org/'
license=('MIT')
arch=('any')
depends=('perl' 'python')
makedepends=('git' 'python-build' 'python-docutils' 'python-flit' 'python-installer' 'python-wheel')
checkdepends=('clang' 'git' 'lld' 'llvm' 'python-pytest' 'python-pytest-mock')
optdepends=('docker: Container-based build support'
'podman: Container-based build support'
'socat: Offline build support')
source=("$pkgname-$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "$pkgname-$pkgver"
make man
make bash_completion
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname-$pkgver"
PYTHONDONTWRITEBYTECODE=1 pytest
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dvm644 tuxmake.1 -t "$pkgdir"/usr/share/man/man1
install -Dvm644 bash_completion/tuxmake -t "$pkgdir"/usr/share/bash-completion/completions
install -Dvm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}