# Template file for 'simavr' pkgname=simavr version=1.6 revision=1 hostmakedepends="pkgconf" makedepends="elfutils-devel libfreeglut-devel avr-libc" short_desc="Lean, mean, and hackable AVR simulator" maintainer="Robert Lowry " license="GPL-3.0-or-later" homepage="https://github.com/buserror/simavr" distfiles="https://github.com/buserror/simavr/archive/v${version}.tar.gz" checksum=a55ad04d055eef5656c49f78bc089968b059c6efb6a831618b8d7e67a840936d 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 } }