Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix the installation of the TERMINFO database #20

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ xgterm.pkg: ximtool.pkg # This re-uses the same build as ximtool
xgterm/XGTerm.iconset/
install $(BUILDDIR)/x11iraf/xgterm/xgterm.man \
$(INSTDIR)/xgterm/XGTerm.app/Contents/Resources/man/xgterm.1
TERMINFO=$(INSTDIR)/xgterm/XGTerm.app/Resources/terminfo tic \
tic -v -o $(INSTDIR)/xgterm/XGTerm.app/Contents/Resources/terminfo \
$(BUILDDIR)/x11iraf/xgterm/xgterm.terminfo
codesign -s - -i community.iraf.xgterm $(INSTDIR)/xgterm/XGTerm.app
pkgbuild --identifier community.iraf.xgterm \
Expand Down
7 changes: 3 additions & 4 deletions xgterm/scripts/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ APP_PATH=$2
mkdir -p /usr/local/bin/ /usr/local/share/man/man1/ /usr/local/share/terminfo/78

XGTERM_PATH=${APP_PATH}/XGTerm.app/Contents/Resources
rm -f /usr/local/bin/xgterm /usr/local/share/man/man1/xgterm.1 /usr/local/share/terminfo/78/xgterm
ln -s ${XGTERM_PATH}/bin/xgterm /usr/local/bin/
ln -s ${XGTERM_PATH}/man/xgterm.1 /usr/local/share/man/man1/
ln -s ${XGTERM_PATH}/terminfo/78/xgterm /usr/local/share/terminfo/78/
ln -sf ${XGTERM_PATH}/bin/xgterm /usr/local/bin/
ln -sf ${XGTERM_PATH}/man/xgterm.1 /usr/local/share/man/man1/
ln -sf ${XGTERM_PATH}/terminfo/78/xgterm /usr/local/share/terminfo/78/