Skip to content

Instantly share code, notes, and snippets.

@underdoeg underdoeg/PKGBUILD
Last active Jan 24, 2020

Embed
What would you like to do?
godot 3.2 beta PKGBUILD
[Desktop Entry]
Name=Godot Beta
Comment=Application for making games
Exec=/usr/bin/godot-beta %U
Icon=godot
Terminal=false
Type=Application
Categories=Utility;Game;
# Maintainer: Ivan Fonseca <ivanfon@riseup.net>
# Modified by: Philip Whitfield <public@underdoeg.com>
pkgname=godot-beta-bin
pkgver=3.2_rc3
pkgrel=1
pkgdesc="The latest official beta release of the Godot game engine"
url="https://godotengine.org"
license=("MIT")
arch=("i686" "x86_64")
provides=("godot-beta-bin")
source=("godot-beta.desktop")
source_i686+=("https://downloads.tuxfamily.org/godotengine/3.2/rc3/Godot_v3.2-rc3_x11.32.zip")
source_x86_64+=("https://downloads.tuxfamily.org/godotengine/3.2/rc3/Godot_v3.2-rc3_x11.64.zip")
sha256sums=('SKIP')
sha256sums_i686=('SKIP')
sha256sums_x86_64=('SKIP')
package() {
mkdir -p "$pkgdir/opt/$pkgname"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/applications"
case $CARCH in
"i686")
cp "$srcdir/Godot_v3.2-rc3_x11.32" "$pkgdir/opt/$pkgname/godot-beta"
;;
"x86_64")
cp "$srcdir/Godot_v3.2-rc3_x11.64" "$pkgdir/opt/$pkgname/godot-beta"
;;
esac
cp "$srcdir/godot-beta.desktop" "$pkgdir/usr/share/applications/godot-beta.desktop"
chmod +x "$pkgdir/opt/$pkgname/godot-beta"
ln -s "/opt/$pkgname/godot-beta" "$pkgdir/usr/bin/godot-beta"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.