This commit is contained in:
Marco Rubin 2023-05-07 11:14:13 +02:00
parent 4b506c08be
commit 46493eb7f1
3 changed files with 38 additions and 14 deletions

View file

@ -1,16 +1,21 @@
pkgbase = ryujinx
pkgdesc = Experimental Nintendo Switch Emulator written in C#
pkgver = 1.1.726
pkgver = 1.1.763
pkgrel = 1
url = https://github.com/Ryujinx/Ryujinx
install = ryujinx.install
arch = x86_64
license = MIT
makedepends = dotnet-sdk-bin
makedepends = git
depends = dotnet-runtime-bin
provides = Ryujinx
conflicts = ryujinx-git
options = !strip
source = git+https://github.com/Ryujinx/Ryujinx#commit=8d9d508dc78eb5225c99cb425fa484999f3c4305
source = git+https://github.com/Ryujinx/Ryujinx#commit=4c3d2d5d75c46a522d55c0a3ae6820255294517c
source = ryujinx.install
source = dotnet-sdk.tar.gz::https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.200/dotnet-sdk-7.0.200-linux-x64.tar.gz
b2sums = SKIP
b2sums = 5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49
b2sums = 100af2f1e3fda195542f383a449473b1e52a7c5c1ff40b3ee666305a883885e1440996be7e588d8ccad44702917cf8d5e87900a59d80b8a43f9ba76a8e602927
pkgname = ryujinx

View file

@ -1,20 +1,27 @@
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
# check $srcdir/Ryujinx/global.json for the dotnet (SDK and runtime) version required
_name=Ryujinx
pkgname=ryujinx
pkgver=1.1.726
_commit=8d9d508dc78eb5225c99cb425fa484999f3c4305
pkgver=1.1.763
_commit=4c3d2d5d75c46a522d55c0a3ae6820255294517c
pkgrel=1
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
arch=(x86_64)
url="https://github.com/Ryujinx/Ryujinx"
license=('MIT')
depends=('dotnet-runtime-bin')
makedepends=('dotnet-sdk-bin' 'git')
makedepends=('git')
provides=($_name)
conflicts=(ryujinx-git)
options=(!strip)
source=("git+$url#commit=$_commit")
b2sums=('SKIP')
install=ryujinx.install
source=("git+$url#commit=$_commit"
"ryujinx.install"
"dotnet-sdk.tar.gz::https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.200/dotnet-sdk-7.0.200-linux-x64.tar.gz")
b2sums=('SKIP'
'5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49'
'100af2f1e3fda195542f383a449473b1e52a7c5c1ff40b3ee666305a883885e1440996be7e588d8ccad44702917cf8d5e87900a59d80b8a43f9ba76a8e602927')
# pkgver() {
# cd $_name
@ -25,6 +32,9 @@ b2sums=('SKIP')
build() {
cd $_name
export DOTNET_CLI_TELEMETRY_OPTOUT=1
_args="-c Release \
--nologo \
-p:DebugType=embedded \
@ -32,26 +42,28 @@ build() {
-p:Version=$pkgver \
-r linux-x64 \
--self-contained true"
dotnet publish $_args Ryujinx
dotnet publish $_args Ryujinx.Ava
../dotnet publish $_args src/Ryujinx
../dotnet publish $_args src/Ryujinx.Ava
}
package() {
cd $_name
mkdir -p $pkgdir/opt/ryujinx
cp -R Ryujinx/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/"
cp -R Ryujinx.Ava/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/"
mkdir -p "$pkgdir/opt/ryujinx"
cp -R src/Ryujinx/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/"
cp -R src/Ryujinx.Ava/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Ava"
chmod +x "$pkgdir/opt/ryujinx/Ryujinx.sh"
install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/ryujinx/Ryujinx" "$pkgdir/usr/bin/Ryujinx"
ln -s "/opt/ryujinx/Ryujinx.Ava" "$pkgdir/usr/bin/Ryujinx.Ava"
ln -s "/opt/ryujinx/Ryujinx.sh" "$pkgdir/usr/bin/Ryujinx.sh"
install -Dm644 distribution/linux/Ryujinx.desktop "$pkgdir/usr/share/applications/ryujinx.desktop"
install -Dm644 distribution/misc/Logo.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ryujinx.svg"
install -Dm644 distribution/linux/mime/Ryujinx.xml "$pkgdir/usr/share/mime/packages/ryujinx.xml"
install -dm777 "$pkgdir/opt/ryujinx/Logs" # create writable logs directory
}

7
ryujinx.install Normal file
View file

@ -0,0 +1,7 @@
pre_remove() {
if [ -d "/opt/ryujinx/Logs" ];
then
rm -rf /opt/ryujinx/Logs/*
fi
}