New package: hexer-1.0.3

Closes: #7666 [via git-merge-pr]
This commit is contained in:
Aloz1 2017-09-15 15:28:23 +10:00 committed by Michael Aldridge
parent d4dea9bda8
commit 21df4154c1
2 changed files with 44 additions and 0 deletions

View File

@ -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 $@ $<

18
srcpkgs/hexer/template Normal file
View File

@ -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 <kno0001@gmail.com>"
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
}