blob: 68db085b6e1549924a36a11fc8f0f05a93221725 (
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
|
pkgname=rorqual-venv
_pkgname=rorqual
pkgver=4
pkgrel=1
pkgdesc="A TUI Subsonic client"
arch=(any)
url="https://github.com/janbuchar/rorqual"
makedepends=(git python-pip)
depends=(python mpv)
options=(!strip)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/janbuchar/rorqual/archive/refs/tags/release-4.tar.gz"
"requirements.txt"
"rorqual")
sha256sums=("98cb1b18de5f39d6b8a3f4459355839dfaa1a6cb365bd41c8c83d9ec3afe5e85"
"44cbe11a38c56894f14b16ca9513cebe832829a9e6390a8f742557b1344901c8"
"ff4455d4d8880e143a593f9c55d16bf24387fa2f20a2fa6ea3233e618af44c5c")
package() {
# Create virtualenv
export PIP_DISABLE_PIP_VERSION_CHECK=1
export PYTHONDONTWRITEBYTECODE=1
python -m venv "$pkgdir"/opt/rorqual/virtualenv
source "$pkgdir"/opt/rorqual/virtualenv/bin/activate
# Install dependencies
pip install --upgrade pip wheel
pip install -r requirements.txt
# Install rorqual
pushd $srcdir/${_pkgname}-release-${pkgver}
pip install .
popd
# Deactivate virtualenv
deactivate
# Install launcher script
install -Dm755 rorqual "$pkgdir"/usr/bin/rorqual
}
|