2022-12-10 16:56:29 +00:00
|
|
|
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
|
|
|
|
|
2023-05-15 19:44:06 +00:00
|
|
|
# check $srcdir/$_name-$pkgver/global.json for the dotnet (SDK and runtime) version required
|
2022-12-10 14:42:18 +00:00
|
|
|
_name=Ryujinx
|
|
|
|
pkgname=ryujinx
|
2023-10-18 16:58:42 +00:00
|
|
|
pkgver=1.1.1053
|
2023-02-18 14:08:47 +00:00
|
|
|
pkgrel=1
|
2022-12-10 14:42:18 +00:00
|
|
|
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://github.com/Ryujinx/Ryujinx"
|
|
|
|
license=('MIT')
|
2023-04-23 14:14:45 +00:00
|
|
|
depends=('dotnet-runtime-bin')
|
2023-05-07 09:14:13 +00:00
|
|
|
makedepends=('git')
|
|
|
|
provides=($_name)
|
2023-02-18 14:08:47 +00:00
|
|
|
conflicts=(ryujinx-git)
|
2022-12-10 16:56:29 +00:00
|
|
|
options=(!strip)
|
2023-05-07 09:14:13 +00:00
|
|
|
install=ryujinx.install
|
2023-10-18 16:58:42 +00:00
|
|
|
_sdkver=7.0.401
|
2023-06-22 08:01:12 +00:00
|
|
|
source=("$url/archive/$pkgver.tar.gz"
|
2023-05-15 19:44:06 +00:00
|
|
|
"ryujinx.install"
|
2023-10-18 16:58:42 +00:00
|
|
|
"https://dotnetcli.azureedge.net/dotnet/Sdk/$_sdkver/dotnet-sdk-$_sdkver-linux-x64.tar.gz")
|
|
|
|
b2sums=('ab397eef6703c21afcc6521a5855708d5016cab056515aec1a03be9830d6346e54ac1ae69c2ae1c3a32259926406fc45218c99060e6a74886cad3f21afb7cba8'
|
2023-05-07 09:14:13 +00:00
|
|
|
'5e7013a31c2163a8baa71bfc36ef2da3d7580b31966abb13b54271f23f3eda9e591d56c7d448a6c18933e1f21560bbd4d3db62f38f2aae37220ffb4318edfe49'
|
2023-10-18 16:58:42 +00:00
|
|
|
'69f1b10ffb3decdb81b99c08ecd3aeb8bed8415de1251e49d9cfe7cfe1d266e3a0807677bafd7e0be318c8ca5a70420fc911a9112e57b512114e7447e2eeccf1')
|
2022-12-10 14:42:18 +00:00
|
|
|
|
|
|
|
build() {
|
2023-05-15 19:44:06 +00:00
|
|
|
cd $_name-$pkgver
|
2023-05-07 09:14:13 +00:00
|
|
|
|
2023-05-15 19:44:06 +00:00
|
|
|
export PATH="$srcdir:$PATH"
|
2023-05-07 09:14:13 +00:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
|
|
|
2022-12-10 17:51:54 +00:00
|
|
|
_args="-c Release \
|
|
|
|
--nologo \
|
|
|
|
-p:DebugType=embedded \
|
|
|
|
-p:ExtraDefineConstants=DISABLE_UPDATER \
|
|
|
|
-p:Version=$pkgver \
|
|
|
|
-r linux-x64 \
|
|
|
|
--self-contained true"
|
2023-05-15 19:44:06 +00:00
|
|
|
dotnet publish $_args src/Ryujinx
|
|
|
|
dotnet publish $_args src/Ryujinx.Ava
|
2022-12-10 14:42:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-05-15 19:44:06 +00:00
|
|
|
cd $_name-$pkgver
|
2022-12-10 14:42:18 +00:00
|
|
|
|
2023-05-07 09:14:13 +00:00
|
|
|
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/"
|
2023-02-09 11:12:32 +00:00
|
|
|
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx"
|
|
|
|
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Ava"
|
2023-05-07 09:14:13 +00:00
|
|
|
chmod +x "$pkgdir/opt/ryujinx/Ryujinx.sh"
|
2022-12-10 16:56:29 +00:00
|
|
|
|
|
|
|
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"
|
2023-05-07 09:14:13 +00:00
|
|
|
ln -s "/opt/ryujinx/Ryujinx.sh" "$pkgdir/usr/bin/Ryujinx.sh"
|
2022-12-10 14:42:18 +00:00
|
|
|
|
2023-02-09 11:06:44 +00:00
|
|
|
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"
|
2023-06-22 08:01:12 +00:00
|
|
|
|
2022-12-10 17:51:54 +00:00
|
|
|
install -dm777 "$pkgdir/opt/ryujinx/Logs" # create writable logs directory
|
2022-12-10 14:42:18 +00:00
|
|
|
}
|