From d583fca6afc2cf940130d28061704f10fe5839ee Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 29 Apr 2017 23:24:09 +0200 Subject: non-free: tek: Fix build. * non-free/custom/packages/wip.scm (tek): Fix build. --- non-free/custom/packages/wip.scm | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/non-free/custom/packages/wip.scm b/non-free/custom/packages/wip.scm index c9441ae..b7ec03e 100644 --- a/non-free/custom/packages/wip.scm +++ b/non-free/custom/packages/wip.scm @@ -1,4 +1,4 @@ -;;; Copyright © 2016 Ricardo Wurmus +;;; Copyright © 2016, 2017 Ricardo Wurmus ;;; ;;; This file is not part of GNU Guix but is distributed under the same ;;; license as GNU Guix. @@ -42,19 +42,18 @@ "1rpzfs7zsdj9in1rcy5lncjpsmz05wk58ix62zvy2gzqkds463kk")))) (build-system gnu-build-system) (arguments - `(#:make-flags '("LIN_CXX=gcc") - #:parallel-build? #f + `(#:tests? #f ; no tests! + #:make-flags '("LIN_CXX=g++") #:phases (modify-phases %standard-phases - (add-after 'unpack 'fix-order - (lambda _ - (substitute* "Makefile" - (("\\$\\(LIN_CXX\\) -c \\$\\(CXXFLAGS\\) `\\$\\(LIN_WXCONFIG\\) --cxxflags` \\$\\(filter %.cpp,\\$\\^\\) -o \\$@") - "$(LIN_CXX) -o $@ -c $(CXXFLAGS) `$(LIN_WXCONFIG) --cxxflags` $(filter %.cpp,$^)") - (("\\$\\(LIN_CXX\\) \\$\\(CXXFLAGS\\) \\$\\^ `\\$\\(LIN_WXCONFIG\\) --libs` -lusb-1.0 -o \\$@") - "$(LIN_CXX) $(CXXFLAGS) $^ -o $@ `$(LIN_WXCONFIG) --libs` -lusb-1.0")) - #t)) - (delete 'configure)))) + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") + "/bin"))) + (mkdir-p bin) + (install-file "tek.lin" bin) + #t)))))) (inputs `(("wxwidgets" ,wxwidgets) ("libusb" ,libusb))) @@ -63,5 +62,7 @@ (home-page "https://github.com/m-ou-se/tek") (synopsis "Firmware upgrade tool for the Truly Ergonomic keyboard") (description - "TODO") + "This package provides a firmware upgrade tool for keyboards made +by Truly Ergonomic.") + ;; TODO (license license:gpl3+))) -- cgit v1.2.3