From dfb71e3f6b84f2684f9a8dd824a89bbcfb508001 Mon Sep 17 00:00:00 2001 From: Dominic Monroe Date: Mon, 31 Jul 2017 21:27:34 +0100 Subject: [PATCH] New package: teensy_loader_cli-2.1 --- srcpkgs/teensy_loader_cli/patches/ldflags.patch | 13 +++++++++++++ srcpkgs/teensy_loader_cli/template | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/teensy_loader_cli/patches/ldflags.patch create mode 100644 srcpkgs/teensy_loader_cli/template diff --git a/srcpkgs/teensy_loader_cli/patches/ldflags.patch b/srcpkgs/teensy_loader_cli/patches/ldflags.patch new file mode 100644 index 0000000000..4e6ffe6348 --- /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 0000000000..267415fa15 --- /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 +}