mirror of
				https://github.com/cucumber-sp/yandex-music-linux.git
				synced 2025-10-31 11:51:21 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
| # Maintainer: Andrey Onischenko loraner123@gmail.com
 | |
| 
 | |
| pkgname=yandexmusic
 | |
| pkgver="%version%"
 | |
| pkgrel="%release%"
 | |
| pkgdesc="Yandex Music Client"
 | |
| arch=("any")
 | |
| url="https://github.com/cucumber-sp/yandex-music-linux"
 | |
| license=("custom")
 | |
| depends=("electron" "libpulse")
 | |
| makedepends=("p7zip" "nodejs" "jq")
 | |
| 
 | |
| source=("%exe_link%" "git+https://github.com/cucumber-sp/yandex-music-linux")
 | |
| sha256sums=("%exe_sha256%" "SKIP")
 | |
| 
 | |
| prepare() {
 | |
|     npm install @electron/asar;
 | |
| }
 | |
| 
 | |
| build() {
 | |
|     sh "$srcdir/yandex-music-linux/repack.sh" "$srcdir/%exe_name%"
 | |
| }
 | |
| 
 | |
| package() {
 | |
|     mkdir -p "$pkgdir/usr/lib/yandexmusic"
 | |
|     mkdir -p "$pkgdir/usr/share/applications"
 | |
|     mkdir -p "$pkgdir/usr/bin"
 | |
| 
 | |
|     install -Dm644 "$srcdir/out/yandexmusic.asar" "$pkgdir/usr/lib/yandexmusic/yandexmusic.asar"
 | |
|     install -Dm644 "$srcdir/out/favicon.png" "$pkgdir/usr/share/pixmaps/yandexmusic.png"
 | |
|     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"
 | |
| 
 | |
|     # Create a script to launch the app with Electron
 | |
|     echo "#!/bin/sh" > "$pkgdir/usr/bin/yandexmusic"
 | |
|     echo 'exec electron /usr/lib/yandexmusic/yandexmusic.asar "$@"' >> "$pkgdir/usr/bin/yandexmusic"
 | |
|     chmod 755 "$pkgdir/usr/bin/yandexmusic"
 | |
| }
 |