From 7fd0c2c86b444b18825de1f1037f2acdb44ee95a Mon Sep 17 00:00:00 2001 From: UsernameRandomlyGenerated Date: Sun, 27 Jun 2021 11:04:54 +0200 Subject: [PATCH] micronucleus: update to 2.5. --- srcpkgs/micronucleus/patches/libs.patch | 14 ++++++++++++++ srcpkgs/micronucleus/template | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/micronucleus/patches/libs.patch diff --git a/srcpkgs/micronucleus/patches/libs.patch b/srcpkgs/micronucleus/patches/libs.patch new file mode 100644 index 000000000000..dbad7debeaa6 --- /dev/null +++ b/srcpkgs/micronucleus/patches/libs.patch @@ -0,0 +1,14 @@ +--- a/commandline/Makefile ++++ b/commandline/Makefile +@@ -8,9 +8,9 @@ CC=gcc + ifeq ($(shell uname), Linux) + # If you get the error "usb.h: No such file or directory" you must run "sudo apt-get install libusb-dev" + USBFLAGS=$(shell libusb-config --cflags) +- USBLIBS= -static $(shell libusb-config --libs) ++# USBLIBS= -static $(shell libusb-config --libs) + # If you get an error about missing USB libraries, please use the line below instead of the one above +-# USBLIBS= $(shell libusb-config --libs) ++ USBLIBS= $(shell libusb-config --libs) + EXE_SUFFIX = + OSFLAG = -D LINUX + else ifeq ($(shell uname), Darwin) diff --git a/srcpkgs/micronucleus/template b/srcpkgs/micronucleus/template index 30ac0618f8ca..7e5c63f016cc 100644 --- a/srcpkgs/micronucleus/template +++ b/srcpkgs/micronucleus/template @@ -1,6 +1,6 @@ # Template file for 'micronucleus' pkgname=micronucleus -version=2.04 +version=2.5 revision=1 hostmakedepends="libusb-compat-devel" makedepends="libusb-devel libusb-compat-devel" @@ -8,8 +8,8 @@ short_desc="Upload tool for the Micronucleus avr bootloader" maintainer="Robert Lowry " license="GPL-2.0-or-later" homepage="https://github.com/micronucleus/micronucleus" -distfiles="https://github.com/micronucleus/micronucleus/archive/${version}.tar.gz" -checksum=e09d4e427cde4dac43c3bac2e6f91903ae205263b1598beb8cef4f786692b506 +distfiles="https://github.com/micronucleus/micronucleus/archive/v${version}.tar.gz" +checksum=85ea30826be83973ccac058902fe622a110d53c3dea0f6dd317ca1025d3a8af3 post_patch() { vsed -i commandline/49-micronucleus.rules -e 's|MODE:="0666"|GROUP:="dialout"|'