void-packages/srcpkgs/OpenJK/template
Kenneth Dodrill 0098d6d605 New package: OpenJK-0.0.20210922
* Review fixes
2021-10-02 18:53:02 +02:00

34 lines
1.2 KiB
Bash

# Template file for 'OpenJK'
pkgname=OpenJK
version=0.0.20210922
revision=1
_gitrev=43e9a3da555a487e23081bbd03101e7c926a1e83
wrksrc="${pkgname}-${_gitrev}"
build_style=cmake
configure_args="-DCMAKE_INSTALL_PREFIX=/usr/lib/${pkgname} -DBuildJK2SPEngine=on
-DBuildJK2SPGame=on -DBuildJK2SPRdVanilla=on"
hostmakedepends="pkg-config"
makedepends="libjpeg-turbo-devel libpng-devel zlib-devel SDL2-devel"
short_desc="Open Source Implementation of Jedi Knight II and III Engine"
maintainer="Kenneth Dodrill <kmdodrill@protonmail.com>"
license="GPL-2.0-only"
homepage="https://github.com/JACoders/OpenJK"
distfiles="https://github.com/JACoders/OpenJK/archive/${_gitrev}.tar.gz"
checksum=efd2e3d96fe449819c4276dfea7ae7d591591ee0e651167844110e073f2edb3c
post_install() {
vbin "${FILESDIR}/openjk"
vbin "${FILESDIR}/openjk_sp"
vbin "${FILESDIR}/openjkded"
vbin "${FILESDIR}/openjo"
vinstall "${FILESDIR}/OpenJK.desktop" 644 usr/share/applications
vinstall "${FILESDIR}/OpenJKMP.desktop" 644 usr/share/applications
vinstall "${FILESDIR}/OpenJO.desktop" 644 usr/share/applications
for size in 16 32 64 128 1024; do
vinstall shared/icons/${pkgname}_Icon_${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ OpenJK.png
done
vdoc "${FILESDIR}/README.voidlinux"
}