Skip to content

Commit

Permalink
add: godot-mono-bin (#6836)
Browse files Browse the repository at this point in the history
Co-authored-by: oklopfer <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent c910955 commit e380a3c
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 0 deletions.
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ gnome-tweaks
go-bin
go-task-deb
godot-bin
godot-mono-bin
goldberg-emulator-git
gomuks-deb
goneovim-bin
Expand Down
29 changes: 29 additions & 0 deletions packages/godot-mono-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pkgbase = godot-mono-bin
gives = godot-mono
pkgver = 4.3
pkgdesc = Multi-platform 2D and 3D game engine
url = https://godotengine.org/
arch = amd64
arch = arm64
conflicts = godot-bin
conflicts = godot-git
conflicts = godot-mono-git
license = MIT
maintainer = villamorrd <[email protected]>
repology = project: godot
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/org.godotengine.Godot.desktop
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/org.godotengine.Godot.xml
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/icon.svg
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/godot.6
source = desktop.patch
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
source_amd64 = @godot-mono::https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_mono_linux_x86_64.zip
sha256sums_amd64 = ecdf3cd5a6004a6568c199581d58ba685a9905926e51677906b76fbdd9cad351
source_arm64 = @godot-mono::https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.arm64.zip
sha256sums_arm64 = 1ae242eb7dc30c281efef3f8a518580c9c997eb494a0b978d9504206a3f890c4

pkgname = godot-mono-bin
13 changes: 13 additions & 0 deletions packages/godot-mono-bin/desktop.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/org.godotengine.Godot.desktop b/org.godotengine.Godot.desktop
index 6483f51..bef57a1 100644
--- a/org.godotengine.Godot.desktop
+++ b/org.godotengine.Godot.desktop
@@ -14,7 +14,7 @@ Comment[nl]=Multi-platform 2D- en 3D-game-engine met een veelzijdige editor
Comment[ru]=Кроссплатформенный движок с многофункциональным редактором для 2D- и 3D-игр
Comment[uk]=Багатофункціональний кросплатформний рушій для створення 2D та 3D ігор
Comment[zh_CN]=多平台 2D 和 3D 游戏引擎,带有功能丰富的编辑器
-Exec=godot %f
+Exec=godot-mono %f
Icon=godot
Terminal=false
PrefersNonDefaultGPU=true
52 changes: 52 additions & 0 deletions packages/godot-mono-bin/godot-mono-bin.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
pkgname="godot-mono-bin"
repology=("project: godot")
arch=('amd64' 'arm64')
pkgver="4.3"
url='https://godotengine.org/'
source=(
"https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/org.godotengine.Godot.desktop"
"https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/org.godotengine.Godot.xml"
"https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/icon.svg"
"https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/godot.6"
"desktop.patch"
)
source_amd64=("@godot-mono::https://github.com/godotengine/godot/releases/download/${pkgver}-stable/Godot_v${pkgver}-stable_mono_linux_x86_64.zip")
source_arm64=("@godot-mono::https://github.com/godotengine/godot/releases/download/${pkgver}-stable/Godot_v${pkgver}-stable_linux.arm64.zip")
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
sha256sums_amd64=("ecdf3cd5a6004a6568c199581d58ba685a9905926e51677906b76fbdd9cad351")
sha256sums_arm64=("1ae242eb7dc30c281efef3f8a518580c9c997eb494a0b978d9504206a3f890c4")
conflicts=("godot-bin" "godot-git" "godot-mono-git")
gives="godot-mono"
pkgdesc="Multi-platform 2D and 3D game engine"
maintainer=("villamorrd <[email protected]>")
license=('MIT')

prepare() {
mkdir -p "${pkgdir}/opt/${gives}"
mkdir -p "${pkgdir}/usr/bin"

patch org.godotengine.Godot.desktop desktop.patch
}

package() {
cd "${gives}"

# Rename the binary
for bin in Godot_*; do
mv "${bin}" "${pkgdir}/opt/${gives}/${gives}"
done

mv GodotSharp "${pkgdir}/opt/${gives}"

ln -sf "/opt/${gives}/${gives}" "${pkgdir}/usr/bin/${gives}"
install -Dm644 "${srcdir}/icon.svg" "${pkgdir}/usr/share/pixmaps/${gives}.svg"
install -Dm644 "${srcdir}/org.godotengine.Godot.desktop" "${pkgdir}/usr/share/applications/${gives}.desktop"
install -Dm644 "${srcdir}/org.godotengine.Godot.xml" "${pkgdir}/usr/share/mime/packages/${gives}.xml"
install -Dm644 "${srcdir}/godot.6" "${pkgdir}/usr/share/man/man6/${gives}.6"
}
30 changes: 30 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -3661,6 +3661,36 @@ pkgbase = godot-bin

pkgname = godot-bin
---
pkgbase = godot-mono-bin
gives = godot-mono
pkgver = 4.3
pkgdesc = Multi-platform 2D and 3D game engine
url = https://godotengine.org/
arch = amd64
arch = arm64
conflicts = godot-bin
conflicts = godot-git
conflicts = godot-mono-git
license = MIT
maintainer = villamorrd <[email protected]>
repology = project: godot
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/org.godotengine.Godot.desktop
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/org.godotengine.Godot.xml
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/icon.svg
source = https://raw.githubusercontent.com/godotengine/godot/refs/heads/master/misc/dist/linux/godot.6
source = desktop.patch
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
source_amd64 = @godot-mono::https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_mono_linux_x86_64.zip
sha256sums_amd64 = ecdf3cd5a6004a6568c199581d58ba685a9905926e51677906b76fbdd9cad351
source_arm64 = @godot-mono::https://github.com/godotengine/godot/releases/download/4.3-stable/Godot_v4.3-stable_linux.arm64.zip
sha256sums_arm64 = 1ae242eb7dc30c281efef3f8a518580c9c997eb494a0b978d9504206a3f890c4

pkgname = godot-mono-bin
---
pkgbase = goldberg-emulator-git
gives = goldberg-emulator
pkgver = 0.2.5
Expand Down

0 comments on commit e380a3c

Please sign in to comment.