2024-01-30 16:19:10 +03:00
|
|
|
# Maintainer: Andrey Onischenko loraner123@gmail.com
|
|
|
|
|
|
|
|
pkgname=yandexmusic
|
2024-02-09 13:22:18 +03:00
|
|
|
pkgver="5.0.10"
|
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-02-07 13:38:51 +03:00
|
|
|
depends=("electron" "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-02-09 13:22:18 +03:00
|
|
|
source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.10.exe" "git+https://github.com/cucumber-sp/yandex-music-linux")
|
|
|
|
sha256sums=("cd8d86ab8cc27c215726599e40482b2aab90a33fb0a98d883e4f7e985d7cb725" "SKIP")
|
2024-01-30 16:19:10 +03:00
|
|
|
|
|
|
|
build() {
|
2024-02-09 13:22:18 +03:00
|
|
|
sh "$srcdir/yandex-music-linux/repack.sh" "$srcdir/Yandex_Music_x64_5.0.10.exe"
|
2024-01-30 16:19:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir/usr/lib/yandexmusic"
|
|
|
|
mkdir -p "$pkgdir/usr/share/applications"
|
|
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
|
|
|
2024-01-31 16:47:17 +03:00
|
|
|
install -Dm644 "$srcdir/app/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar"
|
|
|
|
install -Dm644 "$srcdir/app/favicon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png"
|
2024-01-30 18:07:57 +03:00
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop"
|
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
2024-01-30 16:19:10 +03:00
|
|
|
|
|
|
|
# Create a script to launch the app with Electron
|
|
|
|
echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic"
|
2024-01-31 16:47:17 +03:00
|
|
|
echo 'exec electron /usr/lib/yandexmusic/yandexmusic.asar "$@"' >> "$pkgdir/usr/bin/yandexmusic"
|
2024-01-30 16:19:10 +03:00
|
|
|
chmod 755 "$pkgdir/usr/bin/yandexmusic"
|
|
|
|
}
|