diff --git a/srcpkgs/micronucleus/template b/srcpkgs/micronucleus/template new file mode 100644 index 00000000000..30ac0618f8c --- /dev/null +++ b/srcpkgs/micronucleus/template @@ -0,0 +1,25 @@ +# Template file for 'micronucleus' +pkgname=micronucleus +version=2.04 +revision=1 +hostmakedepends="libusb-compat-devel" +makedepends="libusb-devel libusb-compat-devel" +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 + +post_patch() { + vsed -i commandline/49-micronucleus.rules -e 's|MODE:="0666"|GROUP:="dialout"|' +} + +do_build() { + make -C commandline CC="$CC" +} + +do_install() { + vbin commandline/micronucleus + vinstall commandline/49-micronucleus.rules 0644 /usr/lib/udev/rules.d/ +}