diff --git a/srcpkgs/teensy_loader_cli/patches/ldflags.patch b/srcpkgs/teensy_loader_cli/patches/ldflags.patch new file mode 100644 index 00000000000..4e6ffe6348e --- /dev/null +++ b/srcpkgs/teensy_loader_cli/patches/ldflags.patch @@ -0,0 +1,13 @@ +diff --git Makefile Makefile +index 8bbf28f..f9d6b9d 100644 +--- Makefile ++++ Makefile +@@ -12,7 +12,7 @@ ifeq ($(OS), LINUX) # also works on FreeBSD + CC ?= gcc + CFLAGS ?= -O2 -Wall + teensy_loader_cli: teensy_loader_cli.c +- $(CC) $(CFLAGS) -s -DUSE_LIBUSB -o teensy_loader_cli teensy_loader_cli.c -lusb ++ $(CC) $(LDFLAGS) $(CFLAGS) -s -DUSE_LIBUSB -o teensy_loader_cli teensy_loader_cli.c -lusb + + + else ifeq ($(OS), WINDOWS) diff --git a/srcpkgs/teensy_loader_cli/template b/srcpkgs/teensy_loader_cli/template new file mode 100644 index 00000000000..267415fa156 --- /dev/null +++ b/srcpkgs/teensy_loader_cli/template @@ -0,0 +1,17 @@ +# Template file for 'teensy_loader_cli' +pkgname=teensy_loader_cli +version=2.1 +revision=1 +build_style=gnu-makefile +make_build_target=teensy_loader_cli +makedepends="libusb-compat-devel" +short_desc="Command line Teensy Loader" +maintainer="Dominic Monroe " +license="GPL-3" +homepage="http://www.pjrc.com/teensy/loader_cli.html" +distfiles="https://github.com/PaulStoffregen/teensy_loader_cli/archive/${version}.tar.gz" +checksum=5c36fe45b9a3a71ac38848b076cd692bf7ca8826a69941c249daac3a1d95e388 + +do_install() { + vbin teensy_loader_cli +}