blob: 817373079edea23b195ebf562e9598d99dfb04fc (
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
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: Deepjyoti <deep.barman30@gmail.com>
: ${_commit=d8f288c6a0e9258d073100283c65a2e03a761777}
_pkgname="ytmdl"
pkgname="$_pkgname"
pkgver=2024.08.15.1
pkgrel=1
pkgdesc="Download songs from YouTube with metadata from iTunes, Spotify, LastFM, etc"
arch=("any")
url="https://github.com/deepjyoti30/ytmdl"
license=('MIT')
depends=(
'python'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git#commit=$_commit")
sha256sums=("SKIP")
prepare() {
sed -E -e '/ytmdl\.(bash|zsh)/d' -i "$_pkgsrc/setup.py"
}
build() {
cd "$_pkgsrc"
python -m build --no-isolation --wheel --skip-dependency-check
python "utils/completion.py"
}
package() {
depends+=(
'python-beautifulsoup4'
'python-musicbrainzngs'
'python-mutagen'
'python-pyxdg'
'python-rich'
'python-unidecode'
'python-ytmusicapi'
'yt-dlp'
# AUR
'downloader-cli'
'python-ffmpeg-python'
'python-itunespy'
'python-pydes'
'python-simber'
'python-spotipy'
'youtube-search-python'
## implicit
#'python-urllib3'
#'python-colorama'
#'python-requests'
)
cd "$_pkgsrc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm664 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 "ytmdl.zsh" "$pkgdir/usr/share/zsh/site-functions/_ytmdl"
install -Dm644 "ytmdl.bash" "$pkgdir/usr/share/bash-completion/completions/ytmdl"
}
|