diff options
author | Luca Weiss | 2018-12-11 17:45:28 +0100 |
---|---|---|
committer | Luca Weiss | 2018-12-11 17:45:28 +0100 |
commit | 537d6a90d996557721ddc9e4c24a7cdf92e9c6b8 (patch) | |
tree | c736e69bead6285a675488c9e6f1873e199cdb54 | |
download | aur-537d6a90d996557721ddc9e4c24a7cdf92e9c6b8.tar.gz |
Initial upload: jellyfin-git r14640.57296866a-1
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | jellyfin.service | 12 | ||||
-rw-r--r-- | jellyfin.sysusers | 1 | ||||
-rw-r--r-- | jellyfin.tmpfiles | 1 |
5 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..464a6afeea7e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = jellyfin-git + pkgdesc = The Free Software Media Browser + pkgver = r14640.57296866a + pkgrel = 1 + url = https://github.com/jellyfin/jellyfin + arch = i686 + arch = x86_64 + arch = armv6h + license = GPL2 + makedepends = git + depends = ffmpeg + depends = imagemagick + depends = dotnet-sdk + depends = sqlite + provides = jellyfin + conflicts = jellyfin + backup = etc/conf.d/jellyfin + source = git+https://github.com/jellyfin/jellyfin.git + source = jellyfin.service + source = jellyfin.sysusers + source = jellyfin.tmpfiles + sha256sums = SKIP + sha256sums = 982682d72fea64f0dd0c123e3a597699b7f5de306be7bca7c06993d13b51f5e1 + sha256sums = effc1cf85c0c959da73bedbcd94e00cfd317dd876f710183b7baf04209055ea2 + sha256sums = 981cbc8849be8934d95da3ae83619a02249a6790287716a8b7c9ca488ed51d13 + +pkgname = jellyfin-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..42995c6753c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz> +# Contributor: Maxime Gauduin <alucryd@archlinux.org> +# Contributor: Daniel Seymour <dannyseeless@gmail.com> + +pkgname=jellyfin-git +pkgver=r14640.57296866a +pkgrel=1 +pkgdesc='The Free Software Media Browser' +arch=('i686' 'x86_64' 'armv6h') +url='https://github.com/jellyfin/jellyfin' +license=('GPL2') +depends=('ffmpeg' 'imagemagick' 'dotnet-sdk' 'sqlite') +makedepends=('git') +provides=('jellyfin') +conflicts=('jellyfin') +source=('git+https://github.com/jellyfin/jellyfin.git' + 'jellyfin.service' + 'jellyfin.sysusers' + 'jellyfin.tmpfiles') +backup=('etc/conf.d/jellyfin') +sha256sums=('SKIP' + '982682d72fea64f0dd0c123e3a597699b7f5de306be7bca7c06993d13b51f5e1' + 'effc1cf85c0c959da73bedbcd94e00cfd317dd876f710183b7baf04209055ea2' + '981cbc8849be8934d95da3ae83619a02249a6790287716a8b7c9ca488ed51d13') + +pkgver() { + cd jellyfin + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build(){ + cd jellyfin + + dotnet build --configuration Release MediaBrowser.sln + # dotnet doesn't like fakeroot + dotnet publish --configuration Release MediaBrowser.sln --output "$PWD"/build + # TODO: Clean up the runtimes folder, Mono.Posix.NETStandard.dll is required from it though + # rm -rf build/runtimes +} + +package() { + mkdir -p "$pkgdir"/usr/lib + cp -dr --no-preserve='ownership' jellyfin/build "$pkgdir"/usr/lib/jellyfin + + install -Dm 644 jellyfin.service -t "${pkgdir}"/usr/lib/systemd/system/ + install -Dm 644 jellyfin.sysusers "${pkgdir}"/usr/lib/sysusers.d/jellyfin.conf + install -Dm 644 jellyfin.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/jellyfin.conf +} + +# vim: ts=2 sw=2 et: diff --git a/jellyfin.service b/jellyfin.service new file mode 100644 index 000000000000..019c1b66625b --- /dev/null +++ b/jellyfin.service @@ -0,0 +1,12 @@ +[Unit] +Description=Jellyfin Media Server +After=network.target + +[Service] +User=jellyfin +ExecStart=/usr/bin/dotnet /usr/lib/jellyfin/EmbyServer.dll +Restart=on-abort +TimeoutSec=20 + +[Install] +WantedBy=multi-user.target diff --git a/jellyfin.sysusers b/jellyfin.sysusers new file mode 100644 index 000000000000..5303a4915780 --- /dev/null +++ b/jellyfin.sysusers @@ -0,0 +1 @@ +u jellyfin - "Jellyfin Media Server" /var/lib/emby diff --git a/jellyfin.tmpfiles b/jellyfin.tmpfiles new file mode 100644 index 000000000000..3a1fed8fa316 --- /dev/null +++ b/jellyfin.tmpfiles @@ -0,0 +1 @@ +d /var/lib/emby 0755 jellyfin jellyfin - |