kiss-mfavila-small/ports/unofficial/rolling/mtm-git/build

21 lines
506 B
Plaintext
Raw Normal View History

2021-05-09 02:10:08 -04:00
#!/bin/sh -e
# Normally MTM will try to install manuals to a
# directory that doesn't exist. This is a kludge
# to work around that by disabling manpage install.
2022-02-12 19:12:39 -05:00
sed -i '22{/cp/d;}' Makefile
2021-05-09 02:10:08 -04:00
# This is another kludge to fix a problematic
# flag in the makefile. Doesn't cause any
# problems.
sed -i s/"cp -i"/cp/ Makefile
# Link against regular ncurses.
sed -i s/ncursesw\\/curses.h/ncurses.h/ config.def.h
make
install -Dm755 mtm "$1/usr/bin/mtm"
install -Dm755 mtm.1 "$1/usr/share/man/man1/mtm.1"