blob: d2eb21204da6459bbdc8af83999bdcfcc67bee79 (
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
55
56
57
58
59
60
61
62
63
|
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=jellyfin
pkgver=10.8.8
pkgrel=0
pkgdesc="The Free Software Media System"
pkgusers="$pkgname"
pkggroups="$pkgname"
install="$pkgname.pre-install"
url="https://jellyfin.org/"
arch="x86_64"
license="GPL-2.0-only"
makedepends="dotnet6-sdk"
depends="aspnetcore6-runtime ffmpeg"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin/archive/refs/tags/v$pkgver.tar.gz
$pkgname.initd
$pkgname.confd"
case $CARCH in
x86_64) _dotnet_arch=x64;;
aarch64) _dotnet_arch=arm64;;
armv7|armhf) _dotnet_arch=arm;;
esac
# parses RID from /etc/os-release depending on if edge or production release
# to set _runtime_id
# shellcheck disable=SC2034
. /etc/os-release
[ -n "${VERSION_ID//[^_]}" ] && _runtime_id="alpine.${VERSION_ID%_*}-$_dotnet_arch" || _runtime_id="alpine.${VERSION_ID%.*}-$_dotnet_arch"
build() {
dotnet build --configuration Release Jellyfin.Server --no-self-contained --runtime $_runtime_id
dotnet publish --configuration Release Jellyfin.Server --no-self-contained --output publish --runtime $_runtime_id
}
check() {
# check on aarch64 is broken for dotnet6-sdk v6.0.1xx due to
# https://github.com/microsoft/vstest/issues/2566
if [ "$CARCH" = "aarch64" ]; then
return
fi
dotnet test --runtime $_runtime_id
}
package() {
mkdir -p "$pkgdir"/usr/lib
cp -dr publish "$pkgdir"/usr/lib/jellyfin
mkdir -p "$pkgdir"/usr/bin
ln -s /usr/lib/jellyfin/jellyfin "$pkgdir"/usr/bin/jellyfin
install -Dm755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname
}
sha512sums="
1866a8e6a730d2d2211a907aa9087c8bc7069ef53010ba652f1dbbe2c6c638a29259531e31ccf5bee797651999ec0963b2ff3588e791f3b523e43bf4a3556070 jellyfin-10.8.8.tar.gz
364a70a953d921048a249fd370642c1782e434c850334cd55e35bbb10d1bb93482d37faa1c11da5d7acba96a084d9832e5db212b65b0fa9907c7d3afe553aaf9 jellyfin.initd
d35eb07d11d711b8ad35c7726e151a8096609712fee3bfea00c9adeff8e56660e3cde3d9b0b2dc8a847514af4d2b32340e2b29b77facfab4f8921ba15ba671b0 jellyfin.confd
"
|