blob: c8c68852a46884be2ed5f1d15a5cf081f238fbb6 (
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
42
43
44
45
46
47
48
49
50
|
# Maintainer: Andrej Halveland (SnipeX_) <andrej.halv@gmail.com>
pkgname=zotify
pkgver=0.6.12
_commit=8cfd27407e8bacc50d43c8983a97443b29a2b7cf # 0.6.12
pkgrel=1
pkgdesc="A fast and customizable music and podcast downloader."
arch=('x86_64')
url="https://zotify.xyz/zotify/zotify"
license=('custom')
depends=(
'python'
'python-librespot'
'python-music-tag'
'python-pillow'
'python-protobuf'
'python-tabulate'
'python-tqdm'
'python-ffmpy'
'python-pwinput'
'python-mutagen'
)
makedepends=(
'git'
'python-setuptools'
'python-build'
'python-wheel'
'python-installer'
)
source=("zotify::git+https://zotify.xyz/zotify/zotify#commit=$_commit")
sha256sums=('SKIP')
build() {
cd zotify
python -m build --wheel --no-isolation
}
package() {
cd zotify
python -m installer --destdir="${pkgdir}" dist/*.whl
mkdir -p "${pkgdir}/usr/bin"
cat <<EOF >"${pkgdir}/usr/bin/zotify"
#!/bin/sh
python -m zotify \$@
EOF
chmod +x "${pkgdir}/usr/bin/zotify"
install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
|