0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2024-12-23 22:22:59 +03:00
yandex-music-linux/templates/PKGBUILD

30 lines
1.0 KiB
Bash
Raw Normal View History

2024-01-29 22:45:51 +03:00
# Maintainer: Andrey Onischenko loraner123@gmail.com
2024-01-29 22:33:36 +03:00
pkgname=yandexmusic-bin
pkgver=%version%
pkgrel=1
pkgdesc="Yandex Music Client"
arch=('any')
url="https://github.com/cucumber-sp/yandex-music-linux"
license=('custom')
depends=('electron' 'libpulse')
source=('./yandexmusic.asar' './yandexmusic.desktop' './LICENSE.md')
sha256sums=('%asar_hash%' '%desktop_hash%' 'SKIP')
package() {
mkdir -p "$pkgdir/usr/lib/yandexmusic"
mkdir -p "$pkgdir/usr/share/applications"
mkdir -p "$pkgdir/usr/bin"
install -Dm644 "$srcdir/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar"
install -Dm644 "$srcdir/yandexmusic.desktop" "$pkgdir/usr/share/applications/yandexmusic.desktop"
install -Dm644 "$srcdir/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Create a script to launch the app with Electron
echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic"
echo "electron /usr/lib/yandexmusic/yandexmusic.asar" >> "$pkgdir/usr/bin/yandexmusic"
chmod 755 "$pkgdir/usr/bin/yandexmusic"
}