From 841b927fe0a1d51875d7f741fd0ae679969a049c Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 19 Feb 2022 16:20:20 +0000 Subject: added some x applications --- repo/x11/xterm.xibuild | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 repo/x11/xterm.xibuild (limited to 'repo/x11/xterm.xibuild') diff --git a/repo/x11/xterm.xibuild b/repo/x11/xterm.xibuild new file mode 100644 index 0000000..d4df24e --- /dev/null +++ b/repo/x11/xterm.xibuild @@ -0,0 +1,41 @@ +#!/bin/bash + +MAKEDEPS=(make) +DEPS=(libxft libxaw ncurses luit xbitmaps libutempter libxkbfile) + +DESC="X Terminal Emulator" + +PKG_VER=370 +SOURCE=https://invisible-mirror.net/archives/xterm/xterm-$PKG_VER.tgz + +prepare () { + sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap && + printf '\tkbs=\\177,\n' >> terminfo && + + export TERMINFO=/usr/share/terminfo +} + +build () { + ./configure $XORG_CONFIG + make +} + +package () { + make DESTDIR=$PKG_DEST install + make DESTDIR=$PKG_DEST install-ti + + mkdir -pv $PKG_DEST/usr/share/applications && + cp -v *.desktop $PKG_DEST/usr/share/applications/ + + + mkdir -pv $PKG_DEST/etc/X11/app-defaults + cat >> $PKG_DEST/etc/X11/app-defaults/XTerm << "EOF" +*VT100*locale: true +*VT100*faceName: Monospace +*VT100*faceSize: 10 +*backarrowKeyIsErase: true +*ptyInitialErase: true +EOF + + +} -- cgit v1.2.1