# Template file for 'gpsim'
pkgname=gpsim
version=0.31.0
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="gtk+-devel popt-devel readline-devel"
short_desc="Full-featured software simulator for Microchip PIC mictocontrollers"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://gpsim.sourceforge.net/"
distfiles="https://sourceforge.net/projects/gpsim/files/gpsim/${version}/gpsim-${version}.tar.gz"
checksum=110ee6be3a5d02b32803a91e480cbfc9d423ef72e0830703fc0bc97b9569923f

post_patch() {
	vsed -i src/modules.cc -e '/#include "error.h"/d'
	vsed -i src/breakpoints.h -e '/#include "\.\.\/config.h"/d'
}

gpsim-devel_package() {
	short_desc+=" - development files"
	depends="gpsim-${version}_${revision} gtk+-devel popt-devel readline-devel"
	pkg_install() {
		vmove usr/include/gpsim
		vmove usr/include/eXdbm
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
	}
}
