2022-12-10 16:56:29 +00:00
|
|
|
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
|
|
|
|
|
2022-12-10 14:42:18 +00:00
|
|
|
_name=Ryujinx
|
|
|
|
pkgname=ryujinx
|
2023-02-09 11:06:44 +00:00
|
|
|
pkgver=1.1.614
|
|
|
|
_commit=5f38086f9494a4ffbcb4b0ce4b7727ad8ac18b3e
|
2022-12-30 09:01:47 +00:00
|
|
|
pkgrel=1
|
2022-12-10 14:42:18 +00:00
|
|
|
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://github.com/Ryujinx/Ryujinx"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('dotnet-runtime')
|
2022-12-30 09:01:47 +00:00
|
|
|
makedepends=('dotnet-sdk' 'git')
|
2022-12-10 14:42:18 +00:00
|
|
|
provides=($_name)
|
2022-12-10 17:51:54 +00:00
|
|
|
conflicts=($_name)
|
2022-12-10 16:56:29 +00:00
|
|
|
options=(!strip)
|
2023-02-09 11:06:44 +00:00
|
|
|
source=("git+$url#commit=$_commit" "$url/wiki/Changelog")
|
|
|
|
b2sums=('SKIP' 'SKIP')
|
2022-12-10 14:42:18 +00:00
|
|
|
|
2023-02-09 11:06:44 +00:00
|
|
|
pkgver() {
|
|
|
|
cd $_name
|
|
|
|
_commit_msg=$(git log -1 --pretty=%B | awk '{$NF=""}1') # remove PR number in parentheses
|
|
|
|
# Changelog is $url/wiki/Changelog
|
|
|
|
html2text ../Changelog | grep -B 4 "${_commit_msg::length - 1}" | head -n 1 | awk '{print $2}'
|
|
|
|
}
|
2022-12-10 14:42:18 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $_name
|
2022-12-10 17:51:54 +00:00
|
|
|
_args="-c Release \
|
|
|
|
--nologo \
|
|
|
|
-p:DebugType=embedded \
|
|
|
|
-p:ExtraDefineConstants=DISABLE_UPDATER \
|
|
|
|
-p:Version=$pkgver \
|
|
|
|
-r linux-x64 \
|
|
|
|
--self-contained true"
|
|
|
|
dotnet publish $_args Ryujinx
|
|
|
|
dotnet publish $_args Ryujinx.Ava
|
2022-12-10 14:42:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $_name
|
|
|
|
|
2023-02-09 11:06:44 +00:00
|
|
|
mkdir -p $pkgdir/opt/ryujinx
|
|
|
|
cp -R Ryujinx/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/"
|
|
|
|
cp -R Ryujinx.Ava/bin/Release/net7.0/linux-x64/publish/* "$pkgdir/opt/ryujinx/"
|
2022-12-10 16:56:29 +00:00
|
|
|
|
|
|
|
install -dm755 "$pkgdir/usr/bin"
|
|
|
|
ln -s "/opt/ryujinx/Ryujinx" "$pkgdir/usr/bin/Ryujinx"
|
|
|
|
ln -s "/opt/ryujinx/Ryujinx.Ava" "$pkgdir/usr/bin/Ryujinx.Ava"
|
2022-12-10 14:42:18 +00:00
|
|
|
|
2023-02-09 11:06:44 +00:00
|
|
|
install -Dm644 distribution/linux/Ryujinx.desktop "$pkgdir/usr/share/applications/ryujinx.desktop"
|
|
|
|
install -Dm644 distribution/misc/Logo.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ryujinx.svg"
|
|
|
|
install -Dm644 distribution/linux/mime/Ryujinx.xml "$pkgdir/usr/share/mime/packages/ryujinx.xml"
|
2022-12-10 14:42:18 +00:00
|
|
|
|
2022-12-10 17:51:54 +00:00
|
|
|
install -dm777 "$pkgdir/opt/ryujinx/Logs" # create writable logs directory
|
2022-12-10 14:42:18 +00:00
|
|
|
}
|