blob: 68f95e07162a6e46734088eeb6db6264f996cc01 (
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
53
54
|
# Maintainer: tam1m <tbacc plus aur at pm dot me>
pkgname=fladder-bin
_pkgname=Fladder
pkgver=0.5.0
pkgrel=1
pkgdesc="Fladder - A Simple Jellyfin Frontend"
arch=('x86_64')
url="https://github.com/Fladder-App/Fladder"
license=('GPL-3.0-or-later')
depends=('mpv' 'gtk3')
makedepends=('patchelf')
source=(
"${pkgname}-${pkgver}.zip::https://github.com/DonutWare/Fladder/releases/download/v${pkgver}/Fladder-Linux-${pkgver}.zip"
"https://raw.githubusercontent.com/DonutWare/Fladder/refs/heads/main/LICENSE"
"fladder.desktop"
)
sha256sums=('1ca78bf5534c466c289a5fd3d6a9407adb22d3bd6bb55d66b1cc76c875c1d17c'
'3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986'
'76f8c52297b4f423dd6767a37b56c30ea3398e16f2e0500911ba01df40635ce1')
conflicts=("fladder")
provides=("fladder")
# if set, fladder will autoconnect to the given server
# _base_url="http://192.168.1.100:8096"
package() {
install -dm755 "$pkgdir/usr/bin/$_pkgname"
install -dm755 "$pkgdir/usr/share/applications"
install -dm755 "$pkgdir/usr/share/icons"
cp -r "$srcdir/lib" "$pkgdir/usr/bin/$_pkgname/"
cp -r "$srcdir/data" "$pkgdir/usr/bin/$_pkgname/"
install -m755 -t "$pkgdir/usr/bin/$_pkgname" "$srcdir/Fladder"
ln -s "/usr/bin/$_pkgname/Fladder" "$pkgdir/usr/bin/fladder"
ln -s "/usr/bin/$_pkgname/data/flutter_assets/icons/fladder_icon.svg" "$pkgdir/usr/share/icons/fladder.svg"
install -m644 "$srcdir/fladder.desktop" "$pkgdir/usr/share/applications/"
# fix rpath
for lib in "$pkgdir/usr/bin/$_pkgname/lib"/*.so; do
[[ -f "$lib" && -n "$(patchelf --print-rpath "$lib")" ]] && patchelf --set-rpath '$ORIGIN' "$lib"
done
patchelf --set-rpath '$ORIGIN/lib' "$pkgdir/usr/bin/$_pkgname/Fladder"
# set baseurl
if [ -n "$_base_url" ]; then
sed -i "s|\"baseUrl\": null|\"baseUrl\": \"$_base_url\"|" "${pkgdir}/usr/bin/${_pkgname}/data/flutter_assets/config/config.json"
fi
install -Dm644 "$srcdir/LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname"
}
|