-;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is not part of GNU Guix but is distributed under the same
;;; license as GNU Guix.
"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)))
(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+)))