2024-01-29 22:45:51 +03:00
|
|
|
# Maintainer: Andrey Onischenko loraner123@gmail.com
|
|
|
|
|
2024-02-14 14:07:10 +03:00
|
|
|
pkgname=yandex-music
|
2024-04-29 13:22:43 +03:00
|
|
|
pkgver=%version%
|
|
|
|
pkgrel=%release%
|
2024-01-31 16:47:17 +03:00
|
|
|
pkgdesc="Yandex Music - Personal recommendations, selections for any occasion and new music"
|
2024-01-29 23:48:42 +03:00
|
|
|
arch=("any")
|
2024-01-29 21:41:52 +03:00
|
|
|
url="https://github.com/cucumber-sp/yandex-music-linux"
|
2024-04-29 13:22:43 +03:00
|
|
|
license=("Unlicense")
|
|
|
|
depends=("electron29" "libpulse" "xdg-utils" "bash" "hicolor-icon-theme")
|
|
|
|
makedepends=("p7zip" "nodejs" "asar" "jq" "python" "git")
|
2024-01-29 21:41:52 +03:00
|
|
|
|
2024-04-29 13:22:43 +03:00
|
|
|
source=("%exe_link%" "git+${url}#tag=v${pkgver}")
|
2024-01-30 18:07:57 +03:00
|
|
|
sha256sums=("%exe_sha256%" "SKIP")
|
2024-01-29 23:48:42 +03:00
|
|
|
|
|
|
|
build() {
|
2024-03-02 14:55:37 +03:00
|
|
|
bash "$srcdir/yandex-music-linux/repack.sh" "$srcdir/%exe_name%"
|
2024-01-29 23:48:42 +03:00
|
|
|
}
|
2024-01-29 21:41:52 +03:00
|
|
|
|
|
|
|
package() {
|
2024-02-14 14:07:10 +03:00
|
|
|
mkdir -p "$pkgdir/usr/lib/yandex-music"
|
2024-01-29 21:41:52 +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:16:50 +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:16:50 +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:20:14 +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-29 21:41:52 +03:00
|
|
|
|
2024-03-12 22:20:14 +03:00
|
|
|
install -Dm755 "$srcdir/yandex-music-linux/templates/yandex-music.sh" "$pkgdir/usr/bin/yandex-music"
|
2024-03-14 14:44:52 +03:00
|
|
|
sed -i "s|%electron_path%|/usr/bin/electron29|g" "$pkgdir/usr/bin/yandex-music"
|
2024-01-29 21:41:52 +03:00
|
|
|
}
|