blob: 6a9ebc32e4a048803e3ef36e498feea64a82a7b4 (
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
|
# Maintainer: Metal A-wing <1 at 233 dot email>
# Contributor: Rocka <i at Rocka dot me>
pkgname=electron-netease-cloud-music
pkgver=0.9.39
pkgrel=1
pkgdesc="UNOFFICIAL client for music.163.com . Powered by Electron, Vue, and Muse-UI."
arch=('any')
url="https://github.com/Rocket1184/electron-netease-cloud-music"
license=('GPL-3.0-or-later')
depends=('electron')
optdepends=('dbus: MPRIS support')
makedepends=('yarn')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Rocket1184/$pkgname/archive/v$pkgver.tar.gz"
'electron-netease-cloud-music.desktop'
'electron-netease-cloud-music.sh'
)
md5sums=('039f8bbfdb2b4005e21d4e282c67cada'
'7f35c2dbfc5cd0fd63cd0be16cf35f3c'
'155178854f344b3d56283beb739c8730')
build() {
cd "$srcdir/$pkgname-$pkgver"
YARN_CACHE_FOLDER="$srcdir/yarn_cache" yarn install --ignore-scripts
yarn dist
}
package() {
mkdir -p "$pkgdir/usr/lib"
cp -r "$srcdir/$pkgname-$pkgver/dist" "$pkgdir/usr/lib/$pkgname"
install -Dm755 "$srcdir/electron-netease-cloud-music.sh" "$pkgdir/usr/bin/electron-netease-cloud-music"
install -Dm644 "$srcdir/electron-netease-cloud-music.desktop" -t "$pkgdir/usr/share/applications/"
ICON="$srcdir/$pkgname-$pkgver/assets/icons/icon.svg"
install -Dm644 "$ICON" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|