Added test function that will get populated later

This commit is contained in:
Anton Hvornum 2024-03-11 10:23:04 +01:00
parent 410b3da3ed
commit 99c72c96f5
No known key found for this signature in database
GPG Key ID: D4B58E897A929F2E
1 changed files with 7 additions and 6 deletions

View File

@ -187,21 +187,22 @@ pkgver() {
prepare() {
cd $pkgname-$pkgver
# use real directories for examples and profiles, as symlinks do not work
rm -fv $pkgname/{examples,profiles}
}
build() {
cd $pkgname-$pkgver
python -m build --wheel --no-isolation
PYTHONDONTWRITEBYTECODE=1 make man -C docs
}
package() {
cd "$pkgname-$pkgver"
cd $pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm 644 docs/_build/man/archinstall.1 -t "$pkgdir/usr/share/man/man1/"
}
check() {
cd $pkgname-$pkgver
# Once we adopt pytest or something similar,
# this is where the test call will live
}