57 lines
1.9 KiB
Bash
57 lines
1.9 KiB
Bash
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
|
|
|
|
_name=Ryujinx
|
|
pkgname=ryujinx
|
|
pkgver=1.1.500
|
|
_commit=2b23463daa01226c5569d8e61d1d0959570354cf
|
|
pkgrel=1
|
|
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
|
|
arch=(x86_64)
|
|
url="https://github.com/Ryujinx/Ryujinx"
|
|
license=('MIT')
|
|
depends=('dotnet-runtime')
|
|
makedepends=('dotnet-sdk' 'git')
|
|
provides=($_name)
|
|
conflicts=($_name)
|
|
options=(!strip)
|
|
source=("git+$url#commit=$_commit")
|
|
b2sums=('SKIP')
|
|
|
|
# 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}'
|
|
# }
|
|
|
|
build() {
|
|
cd $_name
|
|
_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
|
|
}
|
|
|
|
package() {
|
|
cd $_name
|
|
|
|
install -Dm644 -t "$pkgdir/opt/ryujinx/" Ryujinx/bin/Release/net7.0/linux-x64/publish/*
|
|
install -Dm644 -t "$pkgdir/opt/ryujinx/" Ryujinx.Ava/bin/Release/net7.0/linux-x64/publish/*
|
|
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx"
|
|
chmod 755 "$pkgdir/opt/ryujinx/Ryujinx.Ava"
|
|
|
|
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"
|
|
|
|
install -Dm644 distribution/linux/ryujinx.desktop "$pkgdir/usr/share/applications/ryujinx.desktop"
|
|
install -Dm644 distribution/linux/ryujinx-logo.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ryujinx.svg"
|
|
install -Dm644 distribution/linux/ryujinx-mime.xml "$pkgdir/usr/share/mime/packages/ryujinx-mime.xml"
|
|
|
|
install -dm777 "$pkgdir/opt/ryujinx/Logs" # create writable logs directory
|
|
}
|