aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/shr/shr-launcher_svn.bb
blob: 84e53990a38031cd2f7278c5e712715f6f509c89 (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
DESCRIPTION = "shr-launcher is a home app/launcher for openmoko phones"
HOMEPAGE = "http://code.google.com/p/shr-launcher/"
AUTHOR = "cchandel"
LICENSE = "GPLv2"
SECTION = "e/apps"
DEPENDS = "elementary eina edbus"

PV = "0.0.1+svnr${SRCPV}"
PR = "r3"

SRC_URI = "svn://shr-launcher.googlecode.com/svn/trunk;module=.;proto=http"

do_configure_prepend() {
  rm -f ${S}/config.log
  rm -f ${S}/config.status
  sed -i "s#launcherdocdir = \$.prefix./doc/launcher#launcherdocdir = \$(datadir)/doc/shr-launcher#g" ${S}/Makefile.am
}

S = "${WORKDIR}"

inherit autotools

do_install_append() {
        install -d "${D}/${datadir}/pixmaps"
        install -m 0644 "${S}/resources/launcher.png" "${D}/${datadir}/pixmaps"
        install -d "${D}/${datadir}/applications"
        install -m 0644 "${S}/resources/launcher.desktop" "${D}/${datadir}/applications"
        install -d "${D}/${datadir}/launcher"
        for ico in "${S}/resources/"*.png; do
                if [ "$(basename $ico)" != "launcher.png" ]; then
                        install -m 0644 $ico "${D}/${datadir}/launcher"
                fi
        done
}

FILES_${PN} += "/usr/share/launcher/* /usr/share/applications/* /usr/share/pixmaps/*"