diff --git a/srcpkgs/hexer/patches/Makefile.patch b/srcpkgs/hexer/patches/Makefile.patch new file mode 100644 index 00000000000..dbe4c303ff9 --- /dev/null +++ b/srcpkgs/hexer/patches/Makefile.patch @@ -0,0 +1,26 @@ +--- Makefile 2017-09-15 14:12:23.848961346 +1000 ++++ Makefile 2017-09-15 15:01:32.364872161 +1000 +@@ -2,6 +2,7 @@ + + # Copyright (c) 1995,1996 Sascha Demetrio + # Copyright (c) 2009 - 2011, 2014 - 2016 Peter Pentchev ++# Copyright (c) 2017 Alastair Knowles + + # It might be helpful to read the `README'-file first. + +@@ -70,11 +71,10 @@ $(HEXER): $(OBJECTS) + $(MYC): calc.c config.h + $(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -DMYCALC=1 -o $@ calc.c -lm + +-bin2c: bin2c.c +- $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ bin2c.c +- +-helptext.c: help.txt bin2c +- ./bin2c -n helptext -o $@ help.txt ++helptext.c: help.txt ++ $(file >$@,char helptext[] = {) ++ $(file >>$@,$(shell cat help.txt | xxd -i)) ++ $(file >>$@,, 0};) + + .c.o: config.h + $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< diff --git a/srcpkgs/hexer/template b/srcpkgs/hexer/template new file mode 100644 index 00000000000..ea4c75437d2 --- /dev/null +++ b/srcpkgs/hexer/template @@ -0,0 +1,18 @@ +# Template file for 'hexer' +pkgname=hexer +version=1.0.3 +revision=1 +build_style=gnu-makefile +make_install_args="MANDIR=/usr/share/man/man1" +hostmakedepends="xxd" +makedepends="ncurses-devel" +short_desc="A multi-buffered hex editor for binary files, with a vi like interface" +maintainer="Aloz1 " +license="BSD" +homepage="https://devel.ringlet.net/editors/hexer/" +distfiles="https://devel.ringlet.net/files/editors/hexer/hexer-${version}.tar.xz" +checksum=0cc09ef5fc256859ad55fd0aa8421bbdf70fc463fcbbc9f52d925a9569136fa8 + +post_install() { + vlicense COPYRIGHT +}