This commit is contained in:
Marco Rubin 2023-02-09 12:06:44 +01:00
parent 0e8dd28e9d
commit 29042c1c71
2 changed files with 20 additions and 19 deletions

View file

@ -1,6 +1,6 @@
pkgbase = ryujinx
pkgdesc = Experimental Nintendo Switch Emulator written in C#
pkgver = 1.1.500
pkgver = 1.1.614
pkgrel = 1
url = https://github.com/Ryujinx/Ryujinx
arch = x86_64
@ -11,7 +11,9 @@ pkgbase = ryujinx
provides = Ryujinx
conflicts = Ryujinx
options = !strip
source = git+https://github.com/Ryujinx/Ryujinx#commit=2b23463daa01226c5569d8e61d1d0959570354cf
source = git+https://github.com/Ryujinx/Ryujinx#commit=5f38086f9494a4ffbcb4b0ce4b7727ad8ac18b3e
source = https://github.com/Ryujinx/Ryujinx/wiki/Changelog
b2sums = SKIP
b2sums = SKIP
pkgname = ryujinx

View file

@ -2,8 +2,8 @@
_name=Ryujinx
pkgname=ryujinx
pkgver=1.1.500
_commit=2b23463daa01226c5569d8e61d1d0959570354cf
pkgver=1.1.614
_commit=5f38086f9494a4ffbcb4b0ce4b7727ad8ac18b3e
pkgrel=1
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
arch=(x86_64)
@ -14,15 +14,15 @@ makedepends=('dotnet-sdk' 'git')
provides=($_name)
conflicts=($_name)
options=(!strip)
source=("git+$url#commit=$_commit")
b2sums=('SKIP')
source=("git+$url#commit=$_commit" "$url/wiki/Changelog")
b2sums=('SKIP' '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}'
# }
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
@ -40,18 +40,17 @@ build() {
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"
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/"
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 -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"
install -dm777 "$pkgdir/opt/ryujinx/Logs" # create writable logs directory
}