blob: 3c6dc0afb7aafec2077d3539686259e9307a50ff (
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
51
52
53
54
55
56
57
58
59
60
61
62
|
# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=ytmdl
pkgver=2022.3.16
pkgrel=2
pkgdesc="Download songs with metadata from Youtube"
url="https://github.com/deepjyoti30/ytmdl"
arch="noarch !armhf !ppc64le" # limited by py3-youtube-search
license="MIT"
depends="python3
py3-beautifulsoup4
py3-colorama
py3-downloader-cli
py3-ffmpeg
py3-itunespy
py3-lxml
py3-musicbrainzngs
py3-mutagen
py3-pydes
py3-pysocks
py3-requests
py3-rich
py3-simber
py3-spotipy
py3-unidecode
py3-urllib3
py3-xdg
py3-youtube-search
py3-ytmusicapi
yt-dlp
"
makedepends="py3-setuptools"
options="!check" # no test suite
subpackages="$pkgname-bash-completion $pkgname-zsh-completion"
source="https://files.pythonhosted.org/packages/source/y/$pkgname/$pkgname-$pkgver.tar.gz"
prepare() {
default_prepare
sed -e '/install_requires/d/setup_requires/d' -i setup.py
# -e 's|etc/bash_completion.d|usr/share/bash-completion/completions|' \
# -e 's|zsh/functions/Completion/Unix|zsh/site-functions|' \
# setup.py
}
build() {
export SETUPTOOLS_USE_DISTUTILS=stdlib
python3 setup.py build
}
package() {
export SETUPTOOLS_USE_DISTUTILS=stdlib
python3 setup.py install --skip-build --root="$pkgdir"
install -Dm644 ytmdl.bash \
"$pkgdir"/usr/share/bash-completion/completions/"$pkgname"
install -Dm644 ytmdl.zsh \
"$pkgdir"/usr/share/zsh/site-functions/_"$pkgname"
}
sha512sums="
5ad67fb981d5f3ea42d2f097cecf982f0971e824c5971aa8fbc664303f436c623ab03a9f0e31dba060b27eb7eb57b88452ba1ede9eb3385dc6acead9fa43e0d0 ytmdl-2022.3.16.tar.gz
"
|