aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/openmoko-3rdparty/calc_git.bb
blob: 4976cdba4cf96408fcca708e5c8515c720c4aa76 (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
DESCRIPTION = "A dead simple calculator. It's advantage is that it's elementary-themed"
HOMEPAGE = "http://github.com/spaetz/calc"
AUTHOR = "Sebastian Spaeth <Sebastian@SSpaeth.de>"
SHR_RELEASE ?= "shr"
LICENSE  = "MIT"
RDEPENDS_${PN} = "python-elementary python python-edbus"
SECTION = "x11/application"
SRCREV = "cff7c833d4fce0d39de0812bfc9ed9e0eb8fac09"
PV = "0.0.1+gitr${SRCPV}"
PR = "r1"

DEFAULT_PREFERENCE = "-1"

SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master"
S = "${WORKDIR}/git"

do_install(){
        install -d ${D}${datadir}/applications
        install -m 0644 ${S}/data/elementary-calculator.desktop ${D}${datadir}/applications/
        install -d ${D}${datadir}/pixmaps
        install -m 0644 ${S}/data/calculator.png ${D}${datadir}/pixmaps/
        install -d ${D}${bindir}
        install -m 0744 ${S}/calc ${D}${bindir}/
}

FILES_${PN} += "${prefix}/share/pixmaps"
FILES_${PN} += "${prefix}/share/applications"