summaryrefslogtreecommitdiff
path: root/repo/apps/xterm.xibuild
blob: 27a5cc22029e4cdbcaa9ff69138699d5306d58d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

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


}