26 lines
779 B
Bash
26 lines
779 B
Bash
|
# 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 <bobertlo@gmail.com>"
|
||
|
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/
|
||
|
}
|