blob: ac38f59f9e49e0fbc33b58735daeb489853560ad (
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
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_appname=vutronmusic
pkgname="${_appname}-electron-bin"
_pkgname=VutronMusic
pkgver=1.4.0
_electronversion=33
pkgrel=1
pkgdesc="A high-quality third-party NetEase Cloud Music player that supports local music playback, offline playlists, and desktop lyrics.(Prebuilt version,use system-wide electron)高颜值的第三方网易云播放器,支持本地音乐播放、离线歌单、桌面歌词、Touch Bar歌词、Mac状态栏歌词显示、Linux-gnome桌面状态栏歌词显示."
arch=('x86_64')
url="https://github.com/stark81/VutronMusic"
license=('MIT')
conflicts=("${_appname}")
prodives=("${_appname}=${pkgver}")
depends=(
"electron${_electronversion}"
)
options=(
'!emptydirs'
)
source=(
"${pkgname%-bin}-${pkgver}.rpm::${url}/releases/download/v${pkgver}/${_pkgname}.${pkgver}_${CARCH}.rpm"
"LICENSE-${pkgver}::https://raw.githubusercontent.com/stark81/VutronMusic/v${pkgver}/LICENSE"
"${pkgname%-bin}.sh"
)
sha256sums=('3714725fd4b0120cc3c91d5de2abb568394b3e519a963f1a55ffa77ff2d71414'
'6e2dc41556237850d3e147d56d4bf63718f8044e2898a99599367b723418af1e'
'291f50480f5a61bc9c68db7d44cd0412071128706baa868a9cb854f8779a1980')
prepare() {
sed -e "
s/@electronversion@/${_electronversion}/g
s/@appname@/${pkgname%-bin}/g
s/@runname@/app.asar/g
s/@cfgdirname@/${_appname}/g
s/@options@/env ELECTRON_OZONE_PLATFORM_HINT=auto/g
" -i "${srcdir}/${pkgname%-bin}.sh"
sed -e "
s/\/opt\/${_pkgname}\/${_appname%music}/${pkgname%-bin}/g
s/Icon=${_appname%music}/Icon=${pkgname%-bin}/g
s/Utility/AudioVideo/g
" -i "${srcdir}/usr/share/applications/${_appname%music}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/opt/${_pkgname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}"
_icon_sizes=(16x16 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024)
for _icons in "${_icon_sizes[@]}";do
install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${_appname%music}.png" \
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"
done
install -Dm644 "${srcdir}/usr/share/applications/${_appname%music}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|