pantry/projects/rigaux.org/hexedit/package.yml

37 lines
769 B
YAML
Raw Normal View History

2022-12-05 22:29:41 +03:00
distributable:
url: https://github.com/pixel/hexedit/archive/refs/tags/{{version.raw}}.tar.gz
strip-components: 1
versions:
github: pixel/hexedit/tags
2022-12-05 23:37:45 +03:00
dependencies:
invisible-island.net/ncurses: 6
2022-12-05 22:29:41 +03:00
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
gnu.org/autoconf: '*'
script: |
./autogen.sh
2022-12-05 23:20:05 +03:00
# configure won't find libncursesw for libncurses.
sed -i.bak -e 's/-lncurses/-lncursesw/' configure
rm configure.bak
2022-12-05 22:29:41 +03:00
./configure --prefix={{prefix}}
make
make install
2022-12-05 23:37:45 +03:00
env:
# needed to `include <curses.h>;`
CPATH: $CPATH:{{deps.invisible-island.net/ncurses.prefix}}/include/ncursesw
2022-12-05 22:29:41 +03:00
test:
2022-12-05 23:37:45 +03:00
true
# FIXME: curses tool, no --version, --help is exit code 1
# hexedit -h
2022-12-05 22:29:41 +03:00
provides:
- bin/hexedit