26 lines
779 B
Bash
26 lines
779 B
Bash
# Template file for 'micronucleus'
|
|
pkgname=micronucleus
|
|
version=2.5
|
|
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/v${version}.tar.gz"
|
|
checksum=85ea30826be83973ccac058902fe622a110d53c3dea0f6dd317ca1025d3a8af3
|
|
|
|
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/
|
|
}
|