summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/pipepanic/files/.mtn2git_empty0
-rw-r--r--packages/pipepanic/files/fix-datadir.patch16
-rw-r--r--packages/pipepanic/pipepanic_0.1.1.bb7
3 files changed, 22 insertions, 1 deletions
diff --git a/packages/pipepanic/files/.mtn2git_empty b/packages/pipepanic/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/pipepanic/files/.mtn2git_empty
diff --git a/packages/pipepanic/files/fix-datadir.patch b/packages/pipepanic/files/fix-datadir.patch
new file mode 100644
index 0000000000..b7df38a3fb
--- /dev/null
+++ b/packages/pipepanic/files/fix-datadir.patch
@@ -0,0 +1,16 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- pipepanic-0.1.1-source/main.h~fix-datadir
++++ pipepanic-0.1.1-source/main.h
+@@ -20,7 +20,7 @@
+ #define FALSE 0
+ #define TRUE 1
+ #define VERSION "0.1.1"
+-#define DATADIR "/opt/QtPalmtop/share/pipepanic/"
++#define DATADIR "/usr/share"
+ #define DIGITS24BMP "digits24.bmp"
+ #define DIGITS48BMP "digits48.bmp"
+ #define TILES24BMP "tiles24.bmp"
diff --git a/packages/pipepanic/pipepanic_0.1.1.bb b/packages/pipepanic/pipepanic_0.1.1.bb
index ac54f119a4..9538f8b547 100644
--- a/packages/pipepanic/pipepanic_0.1.1.bb
+++ b/packages/pipepanic/pipepanic_0.1.1.bb
@@ -3,8 +3,10 @@ Connect as many different shaped pipes together as possible within the time give
HOMEPAGE = "http://www.users.waitrose.com/~thunor/pipepanic/"
LICENSE = "GPL"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
+PR = "r1"
-SRC_URI = "http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-${PV}-source.tar.gz"
+SRC_URI = "http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-${PV}-source.tar.gz \
+ file://fix-datadir.patch;patch=1"
S = "${WORKDIR}/pipepanic-0.1.1-source"
APPIMAGE = "zaurus/pipepanic.png"
@@ -19,5 +21,8 @@ do_compile() {
do_install() {
install -d ${D}${bindir}
install -m 0755 pipepanic ${D}${bindir}
+
+ install -d ${D}${datadir}/pipepanic
+ install -m 0644 *.bmp ${D}${datadir}/pipepanic/
}