Change dir in pkgbuild
This commit is contained in:
10
PKGBUILD
10
PKGBUILD
@@ -11,7 +11,7 @@ depends=(
|
||||
'python-musicbrainzngs'
|
||||
'python-mutagen'
|
||||
'python-pycdio'
|
||||
'python-pygobject'
|
||||
'python-gobject'
|
||||
'python-ruamel-yaml'
|
||||
'cdrdao'
|
||||
'cdparanoia'
|
||||
@@ -44,23 +44,23 @@ source=('git+https://git.daemonlord.ru/benya/whipper-gui.git')
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/whipper"
|
||||
cd "$srcdir/whipper-gui"
|
||||
git describe --long --tags --abbrev=7 | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/whipper"
|
||||
cd "$srcdir/whipper-gui"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/whipper"
|
||||
cd "$srcdir/whipper-gui"
|
||||
export HOME="$srcdir/home"
|
||||
mkdir -p "$HOME"
|
||||
pytest -q
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/whipper"
|
||||
cd "$srcdir/whipper-gui"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user