blob: f29fbc694cf0658db1e20ffa949df9ceff46c4e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: phpusr
pkgname=yandex-music-player
pkgver=1.4.2
pkgrel=1
pkgdesc='Yandex Music desktop Electron application with MPRIS support'
arch=('x86_64')
url='https://github.com/phpusr/yandex-music-player'
license=('GPL')
depends=('electron17')
makedepends=('npm')
provides=('yandex-music-player')
source_x86_64=(
"yandex-music-player-v${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
)
source=(
'ymp.desktop'
'ymp.sh'
)
sha1sums=('6b8693c7069e85149c60f1057a34179a878b57b7'
'5b882c18d447ecdb1ca3fb47f760a73f4460e872')
sha1sums_x86_64=('c87ca9a9bf11fdf95eccbc0ef2245f64679f8694')
package() {
cd "${srcdir}/yandex-music-player-${pkgver}"
export NODE_ENV=production
npm install
# Install app resources
find . -type f -exec install -Dm644 {} "${pkgdir}/usr/share/ymp/{}" \;
# Install bin
install -Dm755 "${srcdir}/ymp.sh" "${pkgdir}/usr/bin/ymp"
# Install desktop
install -Dm755 "${srcdir}/ymp.desktop" "${pkgdir}/usr/share/applications/ymp.desktop"
# Install icon
install -Dm644 "assets/icons/main_icon.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/ymp.png"
}
|