[oe-commits] Martin Jansa : calc: new recipe for elementary based calculator from SHR

git version control git at git.openembedded.org
Wed Nov 18 09:05:58 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: bb0afba8d281a03f5bf21bc4a29ac495a342cc6d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bb0afba8d281a03f5bf21bc4a29ac495a342cc6d

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Wed Nov 18 08:59:59 2009 +0100

calc: new recipe for elementary based calculator from SHR

---

 recipes/calc/calc_0.0.2.bb |   23 +++++++++++++++++++++++
 recipes/calc/calc_git.bb   |   27 +++++++++++++++++++++++++++
 2 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/recipes/calc/calc_0.0.2.bb b/recipes/calc/calc_0.0.2.bb
new file mode 100644
index 0000000..9f15a32
--- /dev/null
+++ b/recipes/calc/calc_0.0.2.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "A simple calculator which is elementary-themed"
+HOMEPAGE = "http://github.com/spaetz/calc"
+AUTHOR = "Sebastian Spaeth <Sebastian at SSpaeth.de>"
+LICENSE  = "MIT"
+RDEPENDS = "python-elementary python python-edbus"
+SECTION = "x11/application"
+PR = "r1"
+
+
+SRC_URI = "git://github.com/spaetz/calc.git;protocol=http;branch=master;tag=${PV}"
+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"
diff --git a/recipes/calc/calc_git.bb b/recipes/calc/calc_git.bb
new file mode 100644
index 0000000..e64bf65
--- /dev/null
+++ b/recipes/calc/calc_git.bb
@@ -0,0 +1,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 at SSpaeth.de>"
+SHR_RELEASE ?= "shr"
+LICENSE  = "MIT"
+RDEPENDS = "python-elementary python python-edbus"
+SECTION = "x11/application"
+SRCREV ?= "1c17792094eb"
+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"





More information about the Openembedded-commits mailing list