summaryrefslogtreecommitdiff
path: root/packages/openmoko-apps/openmoko-terminal_svn.bb
blob: 85e8ea777f6a30755e9d40e4d243c946c5c10b35 (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
DESCRIPTION = "The OpenMoko Command Line Console"
SECTION = "openmoko/applications"
RDEPENDS += "gtkterm2"
PV = "1.0.0"
PR = "r1"

inherit openmoko

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

do_install() {
        install -d ${D}${sysconfdir}/skel
        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/
        install -m 0644 ${WORKDIR}/gtkterm2rc ${D}${sysconfdir}/skel/.gtkterm2rc
}

pkg_postinst_openmoko-terminal() {
#!/bin/sh -e
if [ "x$D" != "x" ]; then
    exit 1 # don't run at image generation time
else
    if [ -e "$HOME/.gtkterm2rc" ]; then
        echo "not overriding $HOME/.gtkterm2rc"
    else
        echo "installing $HOME/.gtkterm2rc from /etc/skel"
        cp -f ${sysconfdir}/skel/.gtkterm2rc $HOME/
    fi
fi
}