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