blob: 2af0a1320a58b760d710f59f47a6ab0567ba35d3 (
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
|
# Maintainer: TheDL98 <ahmed at thedl98 dot com>
# Contributor: solarbaron
pkgname=feishin
pkgver=0.12.1
pkgrel=1
pkgdesc='A modern self-hosted music player.'
arch=('x86_64' 'aarch64')
url='https://github.com/jeffvli/feishin'
license=('GPL-3.0-only')
makedepends=('npm')
optdepends=('mpv: Alternative audio backend')
conflicts=("feishin-git" "feishin-bin")
source=("git+${url}.git#tag=v${pkgver}"
"feishin.desktop")
sha256sums=('SKIP'
'17f4e5c319e625198ffe2032045657e0d33db1d9d64f534bfc2d40f6082fd5db')
build() {
cd $pkgname
export npm_config_cache="$(mktemp -d)"
npm install --legacy-peer-deps
npm run package
rm -rf "$npm_config_cache"
}
package() {
cd "$srcdir"
mkdir -p "$pkgdir/usr/share/$pkgname"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/applications"
cp -r "$pkgname/release/build/linux-unpacked/"* "$pkgdir/usr/share/$pkgname"
install -Dm644 "$pkgdir/usr/share/feishin/resources/assets/icons/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname%}.png"
ln -s /usr/share/feishin/feishin "${pkgdir}/usr/bin/feishin"
install -Dm644 feishin.desktop "$pkgdir/usr/share/applications/"
}
|