summaryrefslogtreecommitdiff
path: root/packages/openmoko2/openmoko-terminal2_1.0.0.bb
blob: 84bd470f7a59b8337bbed5ce29dec1316a1b12a7 (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
DESCRIPTION = "The OpenMoko Command Line Console"
SECTION = "openmoko/applications"
RDEPENDS += "mrxvt"
PR = "r2"

RCONFLICTS = "openmoko-terminal"
RREPLACES = "openmoko-terminal"

inherit openmoko2

SRC_URI = "file://openmoko-terminal.png \
           file://openmoko-terminal.desktop"

do_install() {
        install -d ${D}${datadir}/pixmaps
        install -d ${D}${datadir}/applications
        install -m 0644 ${WORKDIR}/openmoko-terminal.png ${D}${datadir}/pixmaps/
        install -m 0644 ${WORKDIR}/openmoko-terminal.desktop ${D}${datadir}/applications/
}

pkg_postinst_${PN}() {
        if [ "x$D" != "x" ]; then
                exit 1
        fi
		echo "adding font defaults to system-wide mrxvtrc..."
		cat <<EOF >> ${sysconfdir}/mrxvt/mrxvtrc
#
# ---------------------------------- FONTS ----------------------------------- #
#
Mrxvt.xft:                      1
Mrxvt.xftFont:                  Bitstream Vera Sans Mono
Mrxvt.xftSize:                  8
Mrxvt.xftAntialias:             1

# Don't load a multi-char font. This will reduce the line space if your multi
# char font has different dimensions than the regular font. You might need to
# comment it out if you want to use XIM and non-english fonts.
Mrxvt.xftNomFont:               1

# Font to use for tab bar / menus. This need not be mono-spaced ;).
Mrxvt.xftPFont:                 Bitstream Vera Sans
Mrxvt.xftPSize:                 8
EOF

}