aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2020-07-05 20:31:35 +0200
committerMilan P. Stanić <mps@arvanta.net>2020-07-08 13:31:39 +0000
commit1e2e2f59ffe948bc73aa569c4b28744eba92d009 (patch)
tree71ac57a4f661617a8ef33477fea60f9777eecaad
parentac7983adeb335d7f9756c09e2d4b624345dce78f (diff)
downloadaports-1e2e2f59ffe948bc73aa569c4b28744eba92d009.tar.gz
aports-1e2e2f59ffe948bc73aa569c4b28744eba92d009.tar.bz2
aports-1e2e2f59ffe948bc73aa569c4b28744eba92d009.tar.xz
testing/simavr: new aport
https://github.com/buserror/simavr lean, mean Atmel AVR simulator
-rw-r--r--testing/simavr/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/simavr/APKBUILD b/testing/simavr/APKBUILD
new file mode 100644
index 0000000000..06638e85da
--- /dev/null
+++ b/testing/simavr/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Milan P. Stanić <mps@arvanta.net>
+# Maintainer: Milan P. Stanić <mps@arvanta.net>
+pkgname=simavr
+pkgver=1.6
+pkgrel=0
+pkgdesc="lean, mean Atmel AVR simulator "
+url="https://github.com/buserror/simavr"
+arch="all"
+license="GPL-3.0-or-later"
+options="!check" # tests fails
+makedepends="avr-libc freeglut-dev elfutils-dev bash"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/buserror/simavr/archive/v$pkgver.tar.gz"
+
+build() {
+ export CFLAGS="$CFLAGS -fPIC -O2 -std=gnu99 -Wno-error=stringop-truncation"
+ make RELEASE=1 SIMAVR_VERSION=$pkgver build-simavr
+ make RELEASE=1 SIMAVR_VERSION=$pkgver -C examples/parts
+}
+
+check() {
+ make RELEASE=1 -C tests
+}
+
+package() {
+ make RELEASE=1 SIMAVR_VERSION=$pkgver DESTDIR="$pkgdir/usr" install
+}
+
+sha512sums="19f8ec8e8d1bc4173f3eb9ae6447a181452ab5a7bfbf4c7e419bec14014a85256cf58db4635a698a3d56531d8bc735de3bd8b636b7c7665f848956ff181bdc4d simavr-1.6.tar.gz"