summaryrefslogtreecommitdiff
path: root/repo/xterm/xterm.xibuild
blob: 5d49a1c1a2745675fb55c88865d5dabc1a004ab3 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh

MAKEDEPS="make"
DEPS="libxft libxaw ncurses luit xbitmaps libxkbfile"

DESC="X Terminal Emulator"

PKG_VER=371
SOURCE=https://invisible-island.net/archives/xterm/xterm-$PKG_VER.tgz
ADDITIONAL="
    posix-ptys.patch
"

prepare () {
    apply_pacthes
    sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap &&
    printf '\tkbs=\\177,\n' >> terminfo &&

    export TERMINFO=/usr/share/terminfo 
}

build () {
    ./configure \
        --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-x \
		--disable-full-tgetent \
		--disable-imake \
		--enable-ansi-color \
		--enable-88-color \
		--enable-256-color \
		--enable-broken-osc \
		--enable-broken-st \
		--enable-load-vt-fonts \
		--enable-i18n \
		--enable-wide-chars \
		--enable-doublechars \
		--enable-warnings \
		--enable-tcap-query \
		--enable-logging \
		--enable-dabbrev \
		--enable-freetype \
		--enable-luit \
		--enable-mini-luit \
		--enable-narrowproto \
		--enable-exec-xterm \
		--enable-sixel-graphics \
		--with-tty-group=tty \
		--with-utempter
    make
}

package () {
    make DESTDIR=$PKG_DEST install
    make DESTDIR=$PKG_DEST install-ti

    mkdir -p $PKG_DEST/usr/share/applications &&
    cp *.desktop $PKG_DEST/usr/share/applications/
}