void-packages/srcpkgs/TheForceEngine/template

29 lines
1.0 KiB
Bash

# Template file for 'TheForceEngine'
pkgname=TheForceEngine
version=1.09.540
revision=2
build_style=cmake
hostmakedepends="pkg-config"
makedepends="SDL2-devel SDL2_image-devel rtmidi-devel jack-devel glew-devel MesaLib-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Modern \"Jedi Engine\" replacement supporting Dark Forces and mods"
maintainer="Kenneth Dodrill <hello@kennydodrill.com>"
license="GPL-2.0-only"
homepage="https://theforceengine.github.io"
distfiles="https://github.com/luciusDXL/TheForceEngine/archive/v${version}.tar.gz"
checksum=ccb7fa9728deb24af5cef04dc9da7afb1f65f532929d02536720d7bd322dc0a0
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" libexecinfo-devel"
configure_args="-DCMAKE_CXX_STANDARD_LIBRARIES=-lexecinfo"
fi
if [ "$XBPS_TARGET_WORDSIZE" == "32" ]; then
broken="Minimum requirements state 64-bit for GPU renderer"
fi
post_install() {
vinstall "${pkgname}/${pkgname}.desktop" 644 usr/share/applications
vinstall "${pkgname}/${pkgname}.png" 644 usr/share/icons/hicolor/256x256/apps/ ${pkgname}.png
}