From 59dfe6c511320bf0256cb0d6ff6c4708bd303e30 Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Wed, 11 Nov 2020 02:07:18 +0300 Subject: [PATCH] New package: simutron-1.0.1 [Piraty: append _rev to version] Closes: #25742 [via git-merge-pr] --- common/shlibs | 2 ++ .../remove-bitbang-from-firmware-c.patch | 13 ++++++++++ srcpkgs/simutron/template | 24 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 srcpkgs/simutron/patches/remove-bitbang-from-firmware-c.patch create mode 100644 srcpkgs/simutron/template diff --git a/common/shlibs b/common/shlibs index d86b7eddef..89aa301681 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3919,5 +3919,7 @@ libwinbind-client-samba4.so samba-libs-4.13.2_1 libsixel.so.1 libsixel-1.8.6_1 libpamtest.so.0 pam_wrapper-1.1.3_1 libopenaptx.so.0 libopenaptx-0.2.0_1 +libsimavr.so.1 simavr-1.6_2 +libsimavrparts.so.1 simavr-1.6_2 libsword-1.8.1.so libsword-1.8.1_6 libtree-sitter.so.0 tree-sitter-0.18.2_1 diff --git a/srcpkgs/simutron/patches/remove-bitbang-from-firmware-c.patch b/srcpkgs/simutron/patches/remove-bitbang-from-firmware-c.patch new file mode 100644 index 0000000000..c2e7cafaf9 --- /dev/null +++ b/srcpkgs/simutron/patches/remove-bitbang-from-firmware-c.patch @@ -0,0 +1,13 @@ +--- plugins/avrmcu/plugin/firmware.c ++++ plugins/avrmcu/plugin/firmware.c +@@ -118,10 +118,6 @@ + case AVR_MMCU_TAG_SIMAVR_CONSOLE: { + firmware->console_register_addr = src[0] | (src[1] << 8); + } break; +- case AVR_MMCU_TAG_BITBANG: { +- firmware->bitbang_on_mask = +- src[0] | (src[1] << 8) | (src[2] << 16) | (src[3] << 24); +- } break; + } + size -= next; + src += next - 2; // already incremented diff --git a/srcpkgs/simutron/template b/srcpkgs/simutron/template new file mode 100644 index 0000000000..cdcf68c2a4 --- /dev/null +++ b/srcpkgs/simutron/template @@ -0,0 +1,24 @@ +# Template file for 'simutron' +pkgname=simutron +_version=1.0.1 +_rev=SR2 +version=1.0.1.${_rev} +revision=1 +build_wrksrc=build +build_style=qmake +hostmakedepends="subversion qt5-qmake qt5-host-tools pkg-config" +makedepends="simavr-devel qt5-devel" +short_desc="AVR simulator IDE" +maintainer="Artur Sinila " +license="GPL-3.0-only" +homepage="https://sourceforge.net/projects/simutron/" +nostrip_files="LCD20x4Test.elf" + +do_fetch() { + svn checkout "https://svn.code.sf.net/p/${pkgname}/code/branches/RB-${_version}-${_rev}" "$wrksrc" +} + +post_extract() { + rm share/simutron/examples/MENWIZ/LCD20x4Test/bin/Debug/LCD20x4Test.elf + rm share/simutron/examples/MENWIZ/LCD20x4Test/bin/Release/LCD20x4Test.elf +}