void-packages/srcpkgs/vpcs/template

30 lines
734 B
Bash

# Template file for 'vpcs'
pkgname=vpcs
version=0.8.3
revision=1
archs="i686* x86_64*"
build_wrksrc="src"
build_style=gnu-makefile
make_cmd="make -f Makefile.linux"
short_desc="Virtual PC Simulator"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/GNS3/vpcs/"
distfiles="https://github.com/GNS3/vpcs/archive/refs/tags/v${version}.tar.gz"
checksum=73018c923fdb8bbd7d76ddf4877bb7b3babbabed014f409f6b78a2e2b0a33da7
make_check=no #checks unavailable in source makefiles
CFLAGS="-fcommon"
pre_build() {
case "$XBPS_TARGET_MACHINE" in
x86_64*) sed -i "s|i386|amd64|" Makefile.linux;;
esac
}
do_install() {
vbin vpcs
vman ${wrksrc}/man/vpcs.1
vlicense ${wrksrc}/COPYING
}