commit e2d987def3cced62630aea0ee4ae5b6c5f6ea065 Author: xyzzy <> Date: Tue Nov 29 19:36:07 2022 +0100 Initial commit diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..db94f95 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = ryujinx-bin + pkgdesc = Experimental Nintendo Switch Emulator written in C# (master build channel release) + pkgver = 1.1.398 + pkgrel = 1 + url = https://github.com/Ryujinx/release-channel-master + arch = x86_64 + license = MIT + depends = dotnet-runtime + provides = Ryujinx + conflicts = Ryujinx + options = !strip + source = https://github.com/Ryujinx/release-channel-master/releases/download/1.1.398/ryujinx-1.1.398-linux_x64.tar.gz + source = https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/distribution/linux/ryujinx.desktop + source = https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/distribution/linux/ryujinx-logo.svg + source = https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/distribution/linux/ryujinx-mime.xml + sha512sums = f11fe3a8f99fbdfc6fec703955947cc6b3123a36ba040c6deccebf265fb5f8a127abf564f7508b5d1b2394c89763830f699f24477453fbb30ef5eaf718e55a34 + sha512sums = 2d7b57eb966d686abb20dcb4fcd8e1e26ad4a8f83f42b650ff8b8c86c179efa53b62422aa4bc5825f0358cc6e247707bab61537742ef17e8868213a126dbf1d3 + sha512sums = 8e2d6d29df63ced7439dcd7b05f4314c4e07e1d2b2298aedbaf2f0accb3c7acd543a6810c44d1301a049d43865447a82a61d459976bb483ed52ea51e34ee27c3 + sha512sums = 438278d51df2c0219bcf58fce35176d8f904f53c2aa0bd01298c0d3c901c829964113cc4af192f13b26eff8b57728b5f16d6a300a92e072345a7c17684872559 + +pkgname = ryujinx-bin diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..209b075 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: xyzzy + +pkgname=ryujinx-bin +pkgver=1.1.398 +pkgrel=1 +pkgdesc='Experimental Nintendo Switch Emulator written in C# (master build channel release)' +arch=(x86_64) +url='https://github.com/Ryujinx/release-channel-master' +license=('MIT') +depends=('dotnet-runtime') +provides=(Ryujinx) +conflicts=(Ryujinx) +options=('!strip') +source=( + "${url}/releases/download/${pkgver}/ryujinx-${pkgver}-linux_x64.tar.gz" + 'https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/distribution/linux/ryujinx.desktop' + 'https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/distribution/linux/ryujinx-logo.svg' + 'https://raw.githubusercontent.com/Ryujinx/Ryujinx/master/distribution/linux/ryujinx-mime.xml' +) +sha512sums=( + 'f11fe3a8f99fbdfc6fec703955947cc6b3123a36ba040c6deccebf265fb5f8a127abf564f7508b5d1b2394c89763830f699f24477453fbb30ef5eaf718e55a34' + '2d7b57eb966d686abb20dcb4fcd8e1e26ad4a8f83f42b650ff8b8c86c179efa53b62422aa4bc5825f0358cc6e247707bab61537742ef17e8868213a126dbf1d3' + '8e2d6d29df63ced7439dcd7b05f4314c4e07e1d2b2298aedbaf2f0accb3c7acd543a6810c44d1301a049d43865447a82a61d459976bb483ed52ea51e34ee27c3' + '438278d51df2c0219bcf58fce35176d8f904f53c2aa0bd01298c0d3c901c829964113cc4af192f13b26eff8b57728b5f16d6a300a92e072345a7c17684872559' +) + +prepare() { + # avoid crash due to stack smashing detection (https://github.com/Ryujinx/Ryujinx/issues/3183#issuecomment-1292808614) + sed -i 's/Exec=Ryujinx/Exec=env COMPlus_EnableAlternateStackCheck=1 Ryujinx/' 'ryujinx.desktop' +} + +package() { + mkdir -p "${pkgdir}/opt/ryujinx" + cp -R "${srcdir}/publish/"* "${pkgdir}/opt/ryujinx" + chmod +x "${pkgdir}/opt/ryujinx/Ryujinx" + + # create writable logs directory + mkdir -p "${pkgdir}/opt/ryujinx" + install --directory --mode=777 "${pkgdir}/opt/ryujinx/Logs" + + mkdir -p "${pkgdir}/usr/bin/" + ln -s "/opt/ryujinx/Ryujinx" "${pkgdir}/usr/bin/Ryujinx" + + install -D "${srcdir}/ryujinx.desktop" "${pkgdir}/usr/share/applications/ryujinx.desktop" + install -D "${srcdir}/ryujinx-logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ryujinx.svg" + install -D "${srcdir}/ryujinx-mime.xml" "${pkgdir}/usr/share/mime/packages/ryujinx.xml" +}