This commit is contained in:
xiota 2024-09-14 08:04:18 +00:00
parent ddbdaa9c02
commit dd2d321902
3 changed files with 44 additions and 5 deletions

View file

@ -1,19 +1,19 @@
pkgbase = ryujinx
pkgdesc = Experimental Nintendo Switch Emulator written in C#
pkgver = 1.1.1385
pkgver = 1.1.1386
pkgrel = 1
url = https://github.com/Ryujinx/Ryujinx
install = ryujinx.install
arch = x86_64
license = MIT
makedepends = desktop-file-utils
makedepends = dotnet-sdk>=8.0.7.sdk303
makedepends = dotnet-sdk-bin
depends = gcc-libs
depends = zlib
options = !strip
options = !debug
options = emptydirs
source = ryujinx-1.1.1385.tar.gz::https://github.com/Ryujinx/Ryujinx/archive/1.1.1385.tar.gz
source = ryujinx-1.1.1386.tar.gz::https://github.com/Ryujinx/Ryujinx/archive/1.1.1386.tar.gz
sha256sums = SKIP
pkgname = ryujinx

View file

@ -9,7 +9,7 @@ fi
## basic info
_pkgname="ryujinx"
pkgname="$_pkgname"
pkgver=1.1.1385
pkgver=1.1.1386
pkgrel=1
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
url="https://github.com/Ryujinx/Ryujinx"
@ -22,7 +22,7 @@ depends=(
)
makedepends=(
'desktop-file-utils'
'dotnet-sdk>=8.0.7.sdk303' # aur/dotnet-core-bin
'dotnet-sdk-bin' # aur/dotnet-core-bin
)
options=('!strip' '!debug' 'emptydirs')
@ -57,9 +57,17 @@ build() {
-p:Version=${pkgver%%.r*}
)
echo "Building AVA Interface..."
dotnet publish "${_args[@]}" -o publish_ava src/Ryujinx
echo "Building GTK3 Interface..."
dotnet publish "${_args[@]}" -o publish_gtk src/Ryujinx.Gtk3
echo "Building SDL2 Headless..."
dotnet publish "${_args[@]}" -o publish_sdl src/Ryujinx.Headless.SDL2
echo "Shutting down dotnet build server in background."
(timeout -k 45 30 dotnet build-server shutdown) > /dev/null 2>&1 &
}
package() {

View file

@ -1,3 +1,34 @@
note() {
printf "${BLUE}==>${YELLOW} $1 ${WHITE}$2${ALL_OFF}\n"
}
msg1() {
printf "${BLUE}==>${WHITE} $1${ALL_OFF}\n"
}
msg2() {
printf " ${WHITE} $1${ALL_OFF}\n"
}
ALL_OFF="$(tput sgr0)"
BOLD="${ALL_OFF}$(tput bold)"
BLACK="${BOLD}$(tput setaf 0)"
RED="${BOLD}$(tput setaf 1)"
GREEN="${BOLD}$(tput setaf 2)"
YELLOW="${BOLD}$(tput setaf 3)"
BLUE="${BOLD}$(tput setaf 4)"
MAGENTA="${BOLD}$(tput setaf 5)"
CYAN="${BOLD}$(tput setaf 6)"
WHITE="${BOLD}$(tput setaf 7)"
post_install() {
note 'Warning:' "Contents of '/opt/ryujinx/Logs' will be deleted on uninstall."
}
post_upgrade() {
post_install
}
pre_remove() {
if [ -d "/opt/ryujinx/Logs" ]; then
rm -rf /opt/ryujinx/Logs/*