From cf997f0baa95460584806dd6160cdeb9f74d8b63 Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Wed, 28 Oct 2020 20:15:17 +0300 Subject: [PATCH] New package: avra-1.4.2 --- srcpkgs/avra/patches/00-avra-version.patch | 25 ++++++++++++++++++++++ srcpkgs/avra/template | 11 ++++++++++ 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/avra/patches/00-avra-version.patch create mode 100644 srcpkgs/avra/template diff --git a/srcpkgs/avra/patches/00-avra-version.patch b/srcpkgs/avra/patches/00-avra-version.patch new file mode 100644 index 00000000000..4d954bba397 --- /dev/null +++ b/srcpkgs/avra/patches/00-avra-version.patch @@ -0,0 +1,25 @@ +--- src/avra.c ++++ src/avra.c +@@ -37,10 +37,6 @@ + + #define debug 0 + +-#ifndef VERSION +-#define VERSION "undefined" +-#endif +- + const char *title = "AVRA: advanced AVR macro assembler (version %s)\n"; + + const char *usage = +--- src/avra.h ++++ src/avra.h +@@ -37,6 +37,10 @@ + #define IS_ENDLINE(x) ((x == 10) || (x == 13) || (x == '\0') || (x == 12)) + #define IS_SEPARATOR(x) ((x == ' ') || (x == ',') || (x == '[') || (x == ']')) + ++#ifndef VERSION ++#define VERSION "undefined" ++#endif ++ + #define LINEBUFFER_LENGTH 4096 + #define MAX_NESTED_MACROLOOPS 256 diff --git a/srcpkgs/avra/template b/srcpkgs/avra/template new file mode 100644 index 00000000000..9c95ef26da6 --- /dev/null +++ b/srcpkgs/avra/template @@ -0,0 +1,11 @@ +# Template file for 'avra' +pkgname=avra +version=1.4.2 +revision=1 +build_style=gnu-makefile +short_desc="Assembler for the Atmel AVR microcontroller family" +maintainer="Artur Sinila " +license="GPL-2.0-only" +homepage="https://github.com/Ro5bert/avra" +distfiles="https://github.com/Ro5bert/${pkgname}/archive/${version}.tar.gz" +checksum=cc56837be973d1a102dc6936a0b7235a1d716c0f7cd053bf77e0620577cff986