Skip to content

Commit

Permalink
godot: add man page and mime file
Browse files Browse the repository at this point in the history
  • Loading branch information
Luciogi committed Sep 8, 2023
1 parent 3879823 commit 5cfbae9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions srcpkgs/godot/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'godot'
pkgname=godot
version=4.1.1
revision=4
revision=5
archs="x86_64* i686* aarch64* armv7* ppc64*"
build_style=scons
# Build currently fails with embree-4.X
Expand Down Expand Up @@ -49,17 +49,23 @@ pre_build() {
export CXXFLAGS=" $CXXFLAGS "
}

pre_install() {
sed -i 's/name="x/name="application-x/g' misc/dist/linux/org.godotengine.Godot.xml
}

do_install() {
vlicense LICENSE.txt
vinstall ${FILESDIR}/godot.desktop 644 /usr/share/applications/
vinstall ${wrksrc}/icon.png 644 /usr/share/pixmaps/ godot.png


case "$XBPS_TARGET_MACHINE" in
x86_64*) vbin bin/godot.linuxbsd.editor.x86_64 godot;;
i686*) vbin bin/godot.linuxbsd.editor.x86_32 godot;;
aarch64*) vbin bin/godot.linuxbsd.editor.arm64 godot;;
armv7*) vbin bin/godot.linuxbsd.editor.arm32 godot;;
ppc64*) vbin bin/godot.linuxbsd.editor.ppc64 godot;;
esac

vinstall misc/dist/linux/org.godotengine.Godot.xml 644 /usr/share/mime/packages/
vman misc/dist/linux/godot.6
}

0 comments on commit 5cfbae9

Please sign in to comment.