diff --git a/srcpkgs/simavr-devel b/srcpkgs/simavr-devel new file mode 120000 index 0000000000..b782d6f520 --- /dev/null +++ b/srcpkgs/simavr-devel @@ -0,0 +1 @@ +simavr \ No newline at end of file diff --git a/srcpkgs/simavr/template b/srcpkgs/simavr/template new file mode 100644 index 0000000000..8bb958ad5e --- /dev/null +++ b/srcpkgs/simavr/template @@ -0,0 +1,33 @@ +# 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 + } +}