Add version argument and disable updater
This commit is contained in:
parent
02fae25ead
commit
e7ef5926c1
2 changed files with 14 additions and 9 deletions
4
.SRCINFO
4
.SRCINFO
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = ryujinx
|
pkgbase = ryujinx
|
||||||
pkgdesc = Experimental Nintendo Switch Emulator written in C#
|
pkgdesc = Experimental Nintendo Switch Emulator written in C#
|
||||||
pkgver = 1.1.458
|
pkgver = 1.1.458
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/Ryujinx/Ryujinx
|
url = https://github.com/Ryujinx/Ryujinx
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = MIT
|
license = MIT
|
||||||
|
@ -10,7 +10,7 @@ pkgbase = ryujinx
|
||||||
makedepends = html2text
|
makedepends = html2text
|
||||||
depends = dotnet-runtime
|
depends = dotnet-runtime
|
||||||
provides = Ryujinx
|
provides = Ryujinx
|
||||||
conflicts = ryujinx-git
|
conflicts = Ryujinx
|
||||||
options = !strip
|
options = !strip
|
||||||
source = git+https://github.com/Ryujinx/Ryujinx#commit=459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92
|
source = git+https://github.com/Ryujinx/Ryujinx#commit=459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92
|
||||||
source = https://github.com/Ryujinx/Ryujinx/wiki/Changelog
|
source = https://github.com/Ryujinx/Ryujinx/wiki/Changelog
|
||||||
|
|
19
PKGBUILD
19
PKGBUILD
|
@ -4,7 +4,7 @@ _name=Ryujinx
|
||||||
pkgname=ryujinx
|
pkgname=ryujinx
|
||||||
pkgver=1.1.458
|
pkgver=1.1.458
|
||||||
_commit=459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92
|
_commit=459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
|
pkgdesc="Experimental Nintendo Switch Emulator written in C#"
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
url="https://github.com/Ryujinx/Ryujinx"
|
url="https://github.com/Ryujinx/Ryujinx"
|
||||||
|
@ -12,7 +12,7 @@ license=('MIT')
|
||||||
depends=('dotnet-runtime')
|
depends=('dotnet-runtime')
|
||||||
makedepends=('dotnet-sdk' 'git' 'html2text')
|
makedepends=('dotnet-sdk' 'git' 'html2text')
|
||||||
provides=($_name)
|
provides=($_name)
|
||||||
conflicts=($pkgname-git)
|
conflicts=($_name)
|
||||||
options=(!strip)
|
options=(!strip)
|
||||||
source=("git+$url#commit=$_commit"
|
source=("git+$url#commit=$_commit"
|
||||||
"$url/wiki/Changelog")
|
"$url/wiki/Changelog")
|
||||||
|
@ -21,16 +21,21 @@ b2sums=('SKIP'
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd $_name
|
cd $_name
|
||||||
|
|
||||||
_commit_msg=$(git log -1 --pretty=%B | awk '{$NF=""}1') # remove PR number in parentheses
|
_commit_msg=$(git log -1 --pretty=%B | awk '{$NF=""}1') # remove PR number in parentheses
|
||||||
html2text ../Changelog | grep -B 4 "${_commit_msg::length - 1}" | head -n 1 | awk '{print $2}'
|
html2text ../Changelog | grep -B 4 "${_commit_msg::length - 1}" | head -n 1 | awk '{print $2}'
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $_name
|
cd $_name
|
||||||
|
_args="-c Release \
|
||||||
dotnet publish --nologo -c Release -r linux-x64 -p:DebugType=embedded --self-contained true Ryujinx
|
--nologo \
|
||||||
dotnet publish --nologo -c Release -r linux-x64 -p:DebugType=embedded --self-contained true Ryujinx.Ava
|
-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() {
|
package() {
|
||||||
|
@ -49,5 +54,5 @@ package() {
|
||||||
install -Dm644 distribution/linux/ryujinx-logo.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/ryujinx.svg"
|
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-mime.xml "$pkgdir/usr/share/mime/packages/ryujinx-mime.xml"
|
||||||
|
|
||||||
install -dm777 "$pkgdir/opt/ryujinx/Logs"
|
install -dm777 "$pkgdir/opt/ryujinx/Logs" # create writable logs directory
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue