void-packages/srcpkgs/graphwar/template

25 lines
849 B
Bash

# Template file for 'graphwar'
pkgname=graphwar
version=1.0.0
revision=1
build_style=gnu-makefile
hostmakedepends="openjdk11"
depends="virtual?java-environment"
short_desc="Hit your enemies using mathematical functions"
maintainer="Eloi Torrents <eloitor@disroot.org>"
license="GPL-3.0-or-later"
homepage="http://www.graphwar.com/"
distfiles="https://github.com/catabriga/graphwar/archive/refs/tags/${version}.tar.gz"
checksum=53011a55adf3577d22dd2a190356d7fff7dc1379e4b8736dfd4933b47ab1e4e9
do_install() {
vmkdir usr/share/java
vmkdir usr/share/java/${pkgname}
vinstall globalServer.jar 644 usr/share/java/${pkgname}
vinstall graphwar.jar 644 usr/share/java/${pkgname}
vinstall roomServer.jar 644 usr/share/java/${pkgname}
vbin "${FILESDIR}/${pkgname}"
vbin "${FILESDIR}/${pkgname}-globalServer"
vbin "${FILESDIR}/${pkgname}-roomServer"
}