Cleanup
This commit is contained in:
parent
e2d987def3
commit
b3846b3f9e
1 changed files with 5 additions and 6 deletions
11
PKGBUILD
11
PKGBUILD
|
@ -26,20 +26,19 @@ sha512sums=(
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
# avoid crash due to stack smashing detection (https://github.com/Ryujinx/Ryujinx/issues/3183#issuecomment-1292808614)
|
# 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'
|
sed --in-place 's/Exec=Ryujinx/Exec=env COMPlus_EnableAlternateStackCheck=1 Ryujinx/' 'ryujinx.desktop'
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p "${pkgdir}/opt/ryujinx"
|
mkdir --parents "${pkgdir}/opt"
|
||||||
cp -R "${srcdir}/publish/"* "${pkgdir}/opt/ryujinx"
|
cp --recursive "${srcdir}/publish" "${pkgdir}/opt/ryujinx"
|
||||||
chmod +x "${pkgdir}/opt/ryujinx/Ryujinx"
|
chmod +x "${pkgdir}/opt/ryujinx/Ryujinx"
|
||||||
|
|
||||||
# create writable logs directory
|
# create writable logs directory
|
||||||
mkdir -p "${pkgdir}/opt/ryujinx"
|
|
||||||
install --directory --mode=777 "${pkgdir}/opt/ryujinx/Logs"
|
install --directory --mode=777 "${pkgdir}/opt/ryujinx/Logs"
|
||||||
|
|
||||||
mkdir -p "${pkgdir}/usr/bin/"
|
mkdir --parents "${pkgdir}/usr/bin"
|
||||||
ln -s "/opt/ryujinx/Ryujinx" "${pkgdir}/usr/bin/Ryujinx"
|
ln --symbolic "/opt/ryujinx/Ryujinx" "${pkgdir}/usr/bin/Ryujinx"
|
||||||
|
|
||||||
install -D "${srcdir}/ryujinx.desktop" "${pkgdir}/usr/share/applications/ryujinx.desktop"
|
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-logo.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/ryujinx.svg"
|
||||||
|
|
Loading…
Reference in a new issue