Github messages for voidlinux
 help / color / mirror / Atom feed
From: Anachron <Anachron@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package Request: Jellyfin
Date: Fri, 20 Mar 2020 10:07:15 +0100	[thread overview]
Message-ID: <20200320090715.dn2nTjjxYy0QpvvnuFnuwg5MY8Hxvuhc6d-gMv8V0kw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-6684@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2353 bytes --]

New comment by Anachron on void-packages repository

https://github.com/void-linux/void-packages/issues/6684#issuecomment-601597785

Comment:
This works on `aarch64` too:

I'll check later if `i686` and `armv7l` also work as intended.

```bash
# Template file for 'jellyfin'
pkgname=jellyfin
version=10.5.0
revision=1
wrksrc="${pkgname}-${version}"
create_wrksrc=yes
archs="i686 x86_64 aarmv7l aarch64"
build_style=meta
hostmakedepends="dotnet-sdk-bin yarn"
makedepends="icu-devel libssl47 git"
depends="ffmpeg sqlite"
short_desc="Free Software Media System "
maintainer="Abel Tesfaye <abel-tesfaye@hotmail.com>"
license="GPL-2.0-or-later"
homepage="https://jellyfin.readthedocs.io"
distfiles="
 https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz
 https://github.com/${pkgname}/${pkgname}-web/archive/v${version}.tar.gz>${pkgname}-web-${version}.tar.gz"
checksum="
 f5631758c2a175ae04bedd6d8f8566b2222b14254261bdf29019ecdffde0dddd
 e50b280e805469367bedfef41c32070907e191d4a856b92049e6f6fd558e1dea"
nopie=yes

do_build() {
  cd jellyfin-web-${version}
  yarn install

  # https://docs.microsoft.com/de-de/dotnet/core/rid-catalog#linux-rids
  case "${XBPS_TARGET_MACHINE}" in
    i686) _build_arch="x86";;
    x86_64) _build_arch="x64";;
    armv7l) _build_arch="arm";;
    aarch64) _build_arch="arm64";;
  esac

  cd ../jellyfin-${version}

  export DOTNET_CLI_TELEMETRY_OPTOUT=1
  export CLR_OPENSSL_VERSION_OVERRIDE=47
  dotnet build -r "linux-${_build_arch}" --configuration Release Jellyfin.Server
  dotnet publish -r "linux-${_build_arch}" --configuration Release Jellyfin.Server --output "$PWD"/publish
  rm -rfv publish/runtimes/{alpine-*,osx*,tizen-*,win*,linux-musl-x64,linux-armel}

  test "${XBPS_TARGET_ARCH}" = 'i686' || rm -rfv publish/runtimes/linux-x86
  test "${XBPS_TARGET_ARCH}" = 'x86_64' || rm -rfv publish/runtimes/linux-x64
  test "${XBPS_TARGET_ARCH}" = 'armv7l' || rm -rfv publish/runtimes/linux-arm
  test "${XBPS_TARGET_ARCH}" = 'aarch64' || rm -rfv publish/runtimes/linux-arm64
  
  mkdir publish/jellyfin-web
  cp -rv ../jellyfin-web-${version}/dist/. publish/jellyfin-web

  rm -rfv Jellyfin.Server/
}

do_install() {
  vmkdir "usr/lib/${pkgname}"
  vcopy "${pkgname}-${version}/publish/." "usr/lib/jellyfin"
}
```

  parent reply	other threads:[~2020-03-20  9:07 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-6684@inbox.vuxu.org>
2020-03-17 19:59 ` tesfaye
2020-03-17 20:00 ` tesfaye
2020-03-17 20:01 ` tesfaye
2020-03-17 20:26 ` tesfaye
2020-03-20  7:03 ` Anachron
2020-03-20  7:08 ` Anachron
2020-03-20  9:07 ` Anachron
2020-03-20  9:07 ` Anachron [this message]
2020-03-20  9:14 ` Anachron
2020-03-20  9:15 ` Anachron
2020-03-20  9:17 ` Anachron
2020-03-20 10:53 ` Anachron
2020-03-20 13:17 ` Anachron
2020-03-20 17:34 ` Anachron
2020-03-22  3:51 ` tesfaye
2020-03-22  3:51 ` tesfaye
2020-03-22  3:51 ` tesfaye
2020-03-22  3:52 ` tesfaye
2020-03-22  7:26 ` Anachron
2020-03-22 19:22 ` tesfaye
2020-03-23 10:18 ` Johnnynator
2020-07-09  7:51 ` Anachron
2021-07-12 18:47 ` Anachron
2021-07-12 18:47 ` Anachron
2022-04-15  0:51 ` github-actions
2022-11-23  1:29 ` kjkent
2022-11-23  1:29 ` kjkent
2023-10-18  6:04 ` Anachron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200320090715.dn2nTjjxYy0QpvvnuFnuwg5MY8Hxvuhc6d-gMv8V0kw@z \
    --to=anachron@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).