Яндекс Музыка 5.107.0

Linux-клиент для Яндекс Музыки

Не проверено
 1name=yandex-music
 2version=5.107.0
 3release=1
 4summary='Linux client for Yandex Music'
 5summary_ru='Linux-клиент для Яндекс Музыки'
 6group="Sound"
 7desc='Native Yandex Music client for Linux'
 8desc_ru='Нативный клиент Яндекс Музыки для Linux'
 9maintainer="Maxim Slipenko <maks1ms@alt-gnome.ru>"
10architectures=("amd64")
11homepage="https://music.yandex.ru/download/"
12license=("custom")
13appstream_app_id='ru.yandex.Music'
14
15nonfree=1
16nonfree_msgfile=MSGFILE
17nonfree_msgfile_ru=MSGFILE_ru
18nonfree_url=https://yandex.ru/legal/music_mobile_agreement/
19
20provides=(yandex-music)
21conflicts=()
22
23sources=(
24	"https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_amd64_${version}.deb?~name=${name}-${version}.deb"
25	"local:///yandex-music.sh"
26)
27
28checksums=(
29	sha256:1fb5ae52e22609a3d7de403f50f851a0677186c0302a8abe04ebd3e188780833
30	sha256:6ffc89c0ecda4f2fd901ba949d2c7f812db64f73d154b3018f5764918b6ee5b2
31)
32
33auto_reqprov_method=dirty
34auto_req=1
35auto_prov=1
36
37firejailed=1
38firejail_profiles=(
39	['default']='firejail/aides-yandex-music-bundled.profile'
40)
41
42disable_network=1
43
44prepare() {
45	tar -xf data.tar.xz
46}
47
48package() {
49	cp -dr opt usr "${pkgdir}"/
50
51	mv "$pkgdir/opt/Яндекс Музыка" "$pkgdir/opt/YandexMusic"
52	install-binary yandex-music.sh yandexmusic
53	sed -i 's|Exec="/opt/Яндекс Музыка/yandexmusic" %U|Exec="/usr/bin/yandexmusic" %U|' "${pkgdir}/usr/share/applications/yandexmusic.desktop"
54
55	# Breaking automatic updates
56	rm "$pkgdir/opt/YandexMusic/resources/app-update.yml"
57}
58
59files() {
60	files-find-binary yandexmusic
61	files-find-desktop yandexmusic.desktop
62
63	files-find \
64		"/usr/share/icons/hicolor/**/apps/yandexmusic.png"
65
66	files-find \
67		"/opt/YandexMusic" \
68		"/opt/YandexMusic/**/*"
69}