This commit is contained in:
Marco Rubin 2023-12-27 19:30:17 +01:00
parent 2c587a7da3
commit 8a5b9b41b7
2 changed files with 23 additions and 32 deletions

View file

@ -1,21 +1,17 @@
pkgbase = ryujinx pkgbase = ryujinx
pkgdesc = Experimental Nintendo Switch Emulator written in C# pkgdesc = Experimental Nintendo Switch Emulator written in C#
pkgver = 1.1.1080 pkgver = 1.1.1101
pkgrel = 1 pkgrel = 1
url = https://github.com/Ryujinx/Ryujinx url = https://github.com/Ryujinx/Ryujinx
install = ryujinx.install install = ryujinx.install
arch = x86_64 arch = x86_64
license = MIT license = MIT
makedepends = git makedepends = dotnet-sdk-8.0
depends = dotnet-runtime-bin depends = dotnet-runtime-8.0
provides = Ryujinx
conflicts = ryujinx-git
options = !strip options = !strip
source = https://github.com/Ryujinx/Ryujinx/archive/1.1.1080.tar.gz source = https://github.com/Ryujinx/Ryujinx/archive/1.1.1101.tar.gz
source = ryujinx.install source = ryujinx.install
source = https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.401/dotnet-sdk-7.0.401-linux-x64.tar.gz b2sums = 5f9a839b2ac8fe680fabf1a7faa48698d052682db433753c659baaa1eeb77077113c64b677ade30d43e1e8ec468eeb8eed6a70bdba9d47edc97f70449bf115b6
b2sums = 3f2e37f861f3e9ddb964fd7382a610fe6f2ee52615a73f7e0838ecd616e9eea72fd33fb3e530a9a33275cba51ca58dc07125fb3d940a6f141684cc0c058d3f0b
b2sums = 5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49 b2sums = 5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49
b2sums = 69f1b10ffb3decdb81b99c08ecd3aeb8bed8415de1251e49d9cfe7cfe1d266e3a0807677bafd7e0be318c8ca5a70420fc911a9112e57b512114e7447e2eeccf1
pkgname = ryujinx pkgname = ryujinx

View file

@ -3,52 +3,47 @@
# check $srcdir/$_name-$pkgver/global.json for the dotnet (SDK and runtime) version required # check $srcdir/$_name-$pkgver/global.json for the dotnet (SDK and runtime) version required
_name=Ryujinx _name=Ryujinx
pkgname=ryujinx pkgname=ryujinx
pkgver=1.1.1080 pkgver=1.1.1101
pkgrel=1 pkgrel=1
pkgdesc="Experimental Nintendo Switch Emulator written in C#" pkgdesc="Experimental Nintendo Switch Emulator written in C#"
arch=(x86_64) arch=(x86_64)
url="https://github.com/Ryujinx/Ryujinx" url="https://github.com/Ryujinx/Ryujinx"
license=('MIT') license=('MIT')
depends=('dotnet-runtime-bin') depends=('dotnet-runtime-8.0')
makedepends=('git') makedepends=('dotnet-sdk-8.0')
provides=($_name)
conflicts=(ryujinx-git)
options=(!strip) options=(!strip)
install=ryujinx.install install=ryujinx.install
_sdkver=7.0.401 _sdkver=8.0.100
source=("$url/archive/$pkgver.tar.gz" source=("$url/archive/$pkgver.tar.gz"
"ryujinx.install" "ryujinx.install")
"https://dotnetcli.azureedge.net/dotnet/Sdk/$_sdkver/dotnet-sdk-$_sdkver-linux-x64.tar.gz") b2sums=('5f9a839b2ac8fe680fabf1a7faa48698d052682db433753c659baaa1eeb77077113c64b677ade30d43e1e8ec468eeb8eed6a70bdba9d47edc97f70449bf115b6'
b2sums=('3f2e37f861f3e9ddb964fd7382a610fe6f2ee52615a73f7e0838ecd616e9eea72fd33fb3e530a9a33275cba51ca58dc07125fb3d940a6f141684cc0c058d3f0b' '5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49')
'5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49'
'69f1b10ffb3decdb81b99c08ecd3aeb8bed8415de1251e49d9cfe7cfe1d266e3a0807677bafd7e0be318c8ca5a70420fc911a9112e57b512114e7447e2eeccf1')
build() { build() {
cd $_name-$pkgver cd $_name-$pkgver
export PATH="$srcdir:$srcdir/tools:$PATH"
export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1
dotnet clean dotnet clean
dotnet nuget locals all -c dotnet nuget locals all -c
_args="-c Release \ _args="-c Release \
--nologo \ --nologo \
-p:DebugType=embedded \ -p:DebugType=embedded \
-p:ExtraDefineConstants=DISABLE_UPDATER \ -p:ExtraDefineConstants=DISABLE_UPDATER%2CFORCE_EXTERNAL_BASE_DIR \
-p:Version=$pkgver \ -p:Version=$pkgver \
-r linux-x64 \ -r linux-x64 \
--self-contained true" --self-contained true"
dotnet publish $_args src/Ryujinx dotnet publish $_args -o publish src/Ryujinx
dotnet publish $_args src/Ryujinx.Ava dotnet publish $_args -o publish_ava src/Ryujinx.Ava
} }
package() { package() {
cd $_name-$pkgver cd $_name-$pkgver
mkdir -p "$pkgdir/opt/ryujinx" mkdir -p "$pkgdir/opt/ryujinx"
cp -R src/Ryujinx/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/" cp -R publish/* "$pkgdir/opt/ryujinx/"
cp -R src/Ryujinx.Ava/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/" cp -R publish_ava/* "$pkgdir/opt/ryujinx/"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx" chmod 755 "$pkgdir/opt/ryujinx/Ryujinx"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Ava" chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Ava"
chmod +x "$pkgdir/opt/ryujinx/Ryujinx.sh" chmod +x "$pkgdir/opt/ryujinx/Ryujinx.sh"