void-packages/srcpkgs/TheForceEngine/template

29 lines
1.0 KiB
Bash

# Template file for 'TheForceEngine'
pkgname=TheForceEngine
version=1.09.530
revision=1
build_style=cmake
hostmakedepends="pkg-config"
makedepends="SDL2-devel devil-devel rtmidi-devel jack-devel glew-devel MesaLib-devel"
depends="zenity"
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=6b4649fe219ec0678888e7b2076017cda545f97218d5d05f29cb7604bf45097e
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
}