1.1.1361; add headless sdl2

This commit is contained in:
xiota 2024-07-28 03:16:38 +00:00
parent ab911dae07
commit 0411036546
3 changed files with 33 additions and 64 deletions

View file

@ -1,16 +1,19 @@
pkgbase = ryujinx pkgbase = ryujinx
pkgdesc = Experimental Nintendo Switch Emulator written in C# pkgdesc = Experimental Nintendo Switch Emulator written in C#
pkgver = 1.1.1340 pkgver = 1.1.1361
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 = desktop-file-utils makedepends = desktop-file-utils
makedepends = dotnet-sdk>=8.0.6.sdk302 makedepends = dotnet-sdk>=8.0.7.sdk303
depends = gcc-libs
depends = zlib
options = !strip options = !strip
options = !debug options = !debug
source = ryujinx-1.1.1340.tar.gz::https://github.com/Ryujinx/Ryujinx/archive/1.1.1340.tar.gz options = emptydirs
source = ryujinx-1.1.1361.tar.gz::https://github.com/Ryujinx/Ryujinx/archive/1.1.1361.tar.gz
sha256sums = SKIP sha256sums = SKIP
pkgname = ryujinx pkgname = ryujinx

View file

@ -2,78 +2,43 @@
# Contributor: Marco Rubin <marco.rubin@protonmail.com> # Contributor: Marco Rubin <marco.rubin@protonmail.com>
## options ## options
if [ -n "$_srcinfo" ] || [ -n "$_pkgver" ]; then if [ -z "$_srcinfo" ] && [ -z "$_pkgver" ]; then
: ${_autoupdate:=false}
else
: ${_autoupdate:=true} : ${_autoupdate:=true}
fi fi
: ${_build_git:=false}
unset _pkgtype
[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git"
## basic info ## basic info
_pkgname="ryujinx" _pkgname="ryujinx"
pkgname="$_pkgname${_pkgtype:-}" pkgname="$_pkgname"
pkgver=1.1.1340 pkgver=1.1.1361
pkgrel=1 pkgrel=1
pkgdesc="Experimental Nintendo Switch Emulator written in C#" pkgdesc="Experimental Nintendo Switch Emulator written in C#"
url="https://github.com/Ryujinx/Ryujinx" url="https://github.com/Ryujinx/Ryujinx"
license=('MIT') license=('MIT')
arch=(x86_64) arch=('x86_64')
# main package depends=(
_main_package() { 'gcc-libs'
'zlib'
)
makedepends=( makedepends=(
'desktop-file-utils' 'desktop-file-utils'
'dotnet-sdk>=8.0.6.sdk302' # aur/dotnet-core-bin 'dotnet-sdk>=8.0.7.sdk303' # aur/dotnet-core-bin
) )
options=('!strip' '!debug') options=('!strip' '!debug' 'emptydirs')
install="$_pkgname.install" install="$_pkgname.install"
if [ "${_build_git::1}" != "t" ]; then _source_ryujinx() {
_main_stable
else
_main_git
fi
}
# stable package
_main_stable() {
_update_version
_pkgsrc="Ryujinx-$_pkgver" _pkgsrc="Ryujinx-$_pkgver"
_pkgext="tar.gz" _pkgext="tar.gz"
source=("$_pkgname-$_pkgver.$_pkgext"::"$url/archive/$_pkgver.$_pkgext") source=("$_pkgname-$_pkgver.$_pkgext"::"$url/archive/$_pkgver.$_pkgext")
sha256sums=('SKIP') sha256sums=('SKIP')
}
pkgver() { pkgver() {
echo "${_pkgver:?}" echo "${_pkgver:?}"
} }
}
# git package
_main_git() {
makedepends+=('git')
provides+=("$_pkgname=${pkgver%%.r*}")
conflicts+=("$_pkgname")
_pkgsrc="$_pkgname"
source+=("$_pkgsrc"::"git+$url.git")
sha256sums+=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
}
# common functions
build() { build() {
cd "$_pkgsrc" cd "$_pkgsrc"
@ -94,6 +59,7 @@ build() {
dotnet publish "${_args[@]}" -o publish_ava src/Ryujinx dotnet publish "${_args[@]}" -o publish_ava src/Ryujinx
dotnet publish "${_args[@]}" -o publish_gtk src/Ryujinx.Gtk3 dotnet publish "${_args[@]}" -o publish_gtk src/Ryujinx.Gtk3
dotnet publish "${_args[@]}" -o publish_sdl src/Ryujinx.Headless.SDL2
} }
package() { package() {
@ -101,13 +67,15 @@ package() {
# program # program
install -dm755 "$pkgdir/opt/ryujinx" install -dm755 "$pkgdir/opt/ryujinx"
cp --reflink=auto -r publish_gtk/* "$pkgdir/opt/ryujinx/" cp -a --update=none --reflink=auto publish_ava/* "$pkgdir/opt/ryujinx/"
cp --reflink=auto -r publish_ava/* "$pkgdir/opt/ryujinx/" cp -a --update=none --reflink=auto publish_gtk/* "$pkgdir/opt/ryujinx/"
cp -a --update=none --reflink=auto publish_sdl/* "$pkgdir/opt/ryujinx/"
# symlinks # symlinks
install -dm755 "$pkgdir/usr/bin" install -dm755 "$pkgdir/usr/bin"
ln -s "/opt/ryujinx/Ryujinx" "$pkgdir/usr/bin/ryujinx" ln -s "/opt/ryujinx/Ryujinx" "$pkgdir/usr/bin/ryujinx"
ln -s "/opt/ryujinx/Ryujinx.Gtk3" "$pkgdir/usr/bin/ryujinx.gtk" ln -s "/opt/ryujinx/Ryujinx.Gtk3" "$pkgdir/usr/bin/ryujinx.gtk"
ln -s "/opt/ryujinx/Ryujinx.Headless.SDL2" "$pkgdir/usr/bin/ryujinx.sdl"
# .desktop # .desktop
install -Dm644 distribution/linux/Ryujinx.desktop "$pkgdir/usr/share/applications/ryujinx.desktop" install -Dm644 distribution/linux/Ryujinx.desktop "$pkgdir/usr/share/applications/ryujinx.desktop"
@ -119,14 +87,14 @@ package() {
install -Dm644 distribution/linux/mime/Ryujinx.xml "$pkgdir/usr/share/mime/packages/ryujinx.xml" install -Dm644 distribution/linux/mime/Ryujinx.xml "$pkgdir/usr/share/mime/packages/ryujinx.xml"
# license # license
install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# fix permissions # fix permissions
#chmod -R u=rwX,go=rX "$pkgdir"
find "$pkgdir" -type d -exec chmod 755 {} \; find "$pkgdir" -type d -exec chmod 755 {} \;
find "$pkgdir" -type f -exec chmod 644 {} \; find "$pkgdir" -type f -exec chmod 644 {} \;
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx" chmod 755 "$pkgdir/opt/ryujinx/Ryujinx"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Gtk3" chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Gtk3"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Headless.SDL2"
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.sh" chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.sh"
# writable log directory # writable log directory
@ -137,7 +105,6 @@ package() {
desktop-file-edit --set-icon="ryujinx" "$pkgdir/usr/share/applications/ryujinx.desktop" desktop-file-edit --set-icon="ryujinx" "$pkgdir/usr/share/applications/ryujinx.desktop"
} }
# update version
_update_version() { _update_version() {
: ${_pkgver:=${pkgver%%.r*}} : ${_pkgver:=${pkgver%%.r*}}
@ -160,5 +127,5 @@ _update_version() {
fi fi
} }
# execute _update_version
_main_package _source_ryujinx

View file

@ -1,4 +1,3 @@
pre_remove() { pre_remove() {
if [ -d "/opt/ryujinx/Logs" ]; then if [ -d "/opt/ryujinx/Logs" ]; then
rm -rf /opt/ryujinx/Logs/* rm -rf /opt/ryujinx/Logs/*