2024-01-30 16:19:10 +03:00
|
|
|
# Maintainer: Andrey Onischenko loraner123@gmail.com
|
|
|
|
|
2024-02-14 14:07:10 +03:00
|
|
|
pkgname=yandex-music
|
2024-03-21 03:33:07 +03:00
|
|
|
pkgver="5.0.16"
|
2024-01-30 16:19:10 +03:00
|
|
|
pkgrel="1"
|
2024-01-31 16:47:17 +03:00
|
|
|
pkgdesc="Yandex Music - Personal recommendations, selections for any occasion and new music"
|
2024-01-30 16:19:10 +03:00
|
|
|
arch=("any")
|
|
|
|
url="https://github.com/cucumber-sp/yandex-music-linux"
|
|
|
|
license=("custom")
|
2024-03-11 15:34:33 +03:00
|
|
|
depends=("electron29" "libpulse" "xdg-utils")
|
2024-02-09 17:37:22 +03:00
|
|
|
makedepends=("p7zip" "nodejs" "asar" "jq" "python")
|
2024-01-30 16:19:10 +03:00
|
|
|
|
2024-03-21 03:33:07 +03:00
|
|
|
source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.16.exe" "git+https://github.com/cucumber-sp/yandex-music-linux")
|
|
|
|
sha256sums=("0b70fa4723eecd98828f6184c65e916c15fd884946e511e7b57ffd30d11ba5fc" "SKIP")
|
2024-01-30 16:19:10 +03:00
|
|
|
|
|
|
|
build() {
|
2024-03-21 03:33:07 +03:00
|
|
|
bash "$srcdir/yandex-music-linux/repack.sh" "$srcdir/Yandex_Music_x64_5.0.16.exe"
|
2024-01-30 16:19:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-02-14 14:07:10 +03:00
|
|
|
mkdir -p "$pkgdir/usr/lib/yandex-music"
|
2024-01-30 16:19:10 +03:00
|
|
|
mkdir -p "$pkgdir/usr/share/applications"
|
|
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
|
|
|
2024-02-14 14:07:10 +03:00
|
|
|
install -Dm644 "$srcdir/app/yandex-music.asar" "$pkgdir/usr/lib/yandex-music/yandex-music.asar"
|
2024-02-20 16:18:03 +03:00
|
|
|
|
2024-02-14 14:07:10 +03:00
|
|
|
install -Dm644 "$srcdir/app/favicon.png" "$pkgdir/usr/share/pixmaps/yandex-music.png"
|
2024-02-20 16:18:03 +03:00
|
|
|
install -Dm644 "$srcdir/app/favicon.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/yandex-music.png"
|
|
|
|
install -Dm644 "$srcdir/app/favicon.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/yandex-music.svg"
|
|
|
|
|
2024-02-14 14:07:10 +03:00
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandex-music.desktop"
|
2024-03-12 22:33:47 +03:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/templates/default.conf" "$pkgdir/usr/lib/yandex-music/default.conf"
|
|
|
|
|
2024-01-30 18:07:57 +03:00
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2024-01-30 16:19:10 +03:00
|
|
|
|
2024-03-12 22:33:47 +03:00
|
|
|
install -Dm755 "$srcdir/yandex-music-linux/templates/yandex-music.sh" "$pkgdir/usr/bin/yandex-music"
|
2024-03-14 14:48:10 +03:00
|
|
|
sed -i "s|%electron_path%|/usr/bin/electron29|g" "$pkgdir/usr/bin/yandex-music"
|
2024-01-30 16:19:10 +03:00
|
|
|
}
|