aur-ryujinx-bin/PKGBUILD

47 lines
2.1 KiB
Text
Raw Normal View History

2022-11-29 18:36:07 +00:00
# Maintainer: xyzzy
pkgname=ryujinx-bin
2022-12-01 18:01:19 +00:00
pkgver=1.1.406
2022-11-29 18:36:07 +00:00
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=(
2022-12-01 18:01:19 +00:00
'b22d09ad358c9a11b0ced8a681c90f85b97562aa3072204526dc3e151747d3663b1998a51f5748157c92b337ec23f3646564fda99d3b6c76c7861f16189a9aa5'
2022-11-29 18:36:07 +00:00
'2d7b57eb966d686abb20dcb4fcd8e1e26ad4a8f83f42b650ff8b8c86c179efa53b62422aa4bc5825f0358cc6e247707bab61537742ef17e8868213a126dbf1d3'
'8e2d6d29df63ced7439dcd7b05f4314c4e07e1d2b2298aedbaf2f0accb3c7acd543a6810c44d1301a049d43865447a82a61d459976bb483ed52ea51e34ee27c3'
'438278d51df2c0219bcf58fce35176d8f904f53c2aa0bd01298c0d3c901c829964113cc4af192f13b26eff8b57728b5f16d6a300a92e072345a7c17684872559'
)
prepare() {
# avoid crash due to stack smashing detection (https://github.com/Ryujinx/Ryujinx/issues/3183#issuecomment-1292808614)
2022-11-29 22:48:57 +00:00
sed --in-place 's/Exec=Ryujinx/Exec=env COMPlus_EnableAlternateStackCheck=1 Ryujinx/' 'ryujinx.desktop'
2022-11-29 18:36:07 +00:00
}
package() {
2022-11-29 22:48:57 +00:00
mkdir --parents "${pkgdir}/opt"
cp --recursive "${srcdir}/publish" "${pkgdir}/opt/ryujinx"
2022-11-29 18:36:07 +00:00
chmod +x "${pkgdir}/opt/ryujinx/Ryujinx"
# create writable logs directory
install --directory --mode=777 "${pkgdir}/opt/ryujinx/Logs"
2022-11-29 22:48:57 +00:00
mkdir --parents "${pkgdir}/usr/bin"
ln --symbolic "/opt/ryujinx/Ryujinx" "${pkgdir}/usr/bin/Ryujinx"
2022-11-29 18:36:07 +00:00
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"
}