void-packages/srcpkgs/simavr/template

35 lines
911 B
Bash

# Template file for 'simavr'
pkgname=simavr
version=1.7
revision=1
hostmakedepends="pkg-config"
hostmakedepends="which"
makedepends="elfutils-devel libfreeglut-devel avr-libc"
short_desc="Lean, mean, and hackable AVR simulator"
maintainer="Robert Lowry <bobertlo@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/buserror/simavr"
distfiles="https://github.com/buserror/simavr/archive/v${version}.tar.gz"
checksum=e7b3d5f0946e84fbe76a37519d0f146d162bbf88641ee91883b3970b02c77093
CFLAGS="-fPIC -Wno-error=stringop-truncation"
do_build() {
make RELEASE=1 build-simavr
make RELEASE=1 -C examples/parts
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR}/usr install
}
simavr-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}