mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
40 lines
1.8 KiB
Bash
40 lines
1.8 KiB
Bash
# Maintainer: Andrey Onischenko loraner123@gmail.com
|
|
|
|
pkgname=yandex-music
|
|
pkgver="5.0.15"
|
|
pkgrel="1"
|
|
pkgdesc="Yandex Music - Personal recommendations, selections for any occasion and new music"
|
|
arch=("any")
|
|
url="https://github.com/cucumber-sp/yandex-music-linux"
|
|
license=("custom")
|
|
depends=("electron29" "libpulse" "xdg-utils")
|
|
makedepends=("p7zip" "nodejs" "asar" "jq" "python")
|
|
|
|
source=("https://music-desktop-application.s3.yandex.net/stable/Yandex_Music_x64_5.0.15.exe" "git+https://github.com/cucumber-sp/yandex-music-linux")
|
|
sha256sums=("b404778d70bc501e4ecec7496a43ca21f2dcb6dde4fbf872689b78aad822fb77" "SKIP")
|
|
|
|
build() {
|
|
bash "$srcdir/yandex-music-linux/repack.sh" "$srcdir/Yandex_Music_x64_5.0.15.exe"
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir/usr/lib/yandex-music"
|
|
mkdir -p "$pkgdir/usr/share/applications"
|
|
mkdir -p "$pkgdir/usr/bin"
|
|
|
|
install -Dm644 "$srcdir/app/yandex-music.asar" "$pkgdir/usr/lib/yandex-music/yandex-music.asar"
|
|
|
|
install -Dm644 "$srcdir/app/favicon.png" "$pkgdir/usr/share/pixmaps/yandex-music.png"
|
|
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"
|
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/templates/desktop" "$pkgdir/usr/share/applications/yandex-music.desktop"
|
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/templates/default.conf" "$pkgdir/usr/lib/yandex-music/default.conf"
|
|
sed -i "s|%electron_path%|/usr/bin/electron29|g" "$pkgdir/usr/lib/yandex-music/default.conf"
|
|
|
|
install -Dm644 "$srcdir/yandex-music-linux/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
install -Dm755 "$srcdir/yandex-music-linux/templates/yandex-music.sh" "$pkgdir/usr/bin/yandex-music"
|
|
}
|