New package: simavr-1.6

closes #9003
This commit is contained in:
Robert Lowry 2019-02-20 22:32:55 -06:00 committed by maxice8
parent fda3f3d993
commit d088443e39
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 34 additions and 0 deletions

1
srcpkgs/simavr-devel Symbolic link
View file

@ -0,0 +1 @@
simavr

33
srcpkgs/simavr/template Normal file
View file

@ -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 <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=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
}
}