summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/moblin-app-installer
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-10-05 21:20:22 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-10-05 21:20:22 +0100
commite57be74b8b7ecd40337f384bc051aa5191ae8256 (patch)
tree61bfeeccb784596f9c02db67ead7dbdb0c99fc9a /meta-moblin/packages/moblin-app-installer
parent220533aa038f967a5ab55b131f074ce9ac94d241 (diff)
downloadpoky-e57be74b8b7ecd40337f384bc051aa5191ae8256.tar.gz
moblin-app-installer: Add package
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-moblin/packages/moblin-app-installer')
-rw-r--r--meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch44
-rw-r--r--meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb11
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch b/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch
new file mode 100644
index 0000000000..1b57ffe32a
--- /dev/null
+++ b/meta-moblin/packages/moblin-app-installer/moblin-app-installer/opkg.patch
@@ -0,0 +1,44 @@
1Index: git/configure.ac
2===================================================================
3--- git.orig/configure.ac 2009-10-05 17:05:14.000000000 +0100
4+++ git/configure.ac 2009-10-05 21:02:48.000000000 +0100
5@@ -34,7 +34,7 @@
6 gtk+-2.0
7 packagekit-glib >= 0.4
8 packagekit-glib < 0.5
9- rpm >= 4.6'
10+ libopkg'
11
12 AC_MSG_CHECKING([for available nbtk version])
13 PKG_CHECK_EXISTS(nbtk-1.2,
14Index: git/src/mai-package.c
15===================================================================
16--- git.orig/src/mai-package.c 2009-10-05 17:05:06.000000000 +0100
17+++ git/src/mai-package.c 2009-10-05 21:01:57.000000000 +0100
18@@ -23,7 +23,7 @@
19 #include <gtk/gtk.h>
20
21 /* FIXME make conditional. */
22-#include <rpm/rpmlib.h>
23+#include <libopkg/opkg.h>
24
25 #include "mai-model-priv.h"
26 #include "mai-package.h"
27@@ -191,7 +191,7 @@
28
29 if (priv->package_id &&
30 priv->version &&
31- rpmvercmp (version, priv->version) < 0)
32+ opkg_compare_versions (version, priv->version) < 0)
33 {
34 g_debug (" skipping '%s'", version);
35 return;
36@@ -955,7 +955,7 @@
37 return -1;
38
39 /* FIXME support deb. */
40- return rpmvercmp (priv->version, version);
41+ return opkg_compare_versions (priv->version, version);
42 }
43
44 gboolean
diff --git a/meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb b/meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb
new file mode 100644
index 0000000000..502db63a08
--- /dev/null
+++ b/meta-moblin/packages/moblin-app-installer/moblin-app-installer_git.bb
@@ -0,0 +1,11 @@
1DESCRIPTION = "Moblin Appliction Installer"
2SRC_URI = "git://git.moblin.org/${PN}.git;protocol=git \
3 file://opkg.patch;patch=1 "
4LICENSE = "GPLv2"
5PV = "0.0+git${SRCPV}"
6PR = "r0"
7
8S = "${WORKDIR}/git"
9DEPENDS = "clutter-1.0 glib-2.0 nbtk libxml2 gtk+ gnome-packagekit opkg"
10
11inherit autotools_stage