Commit 7dac8dc6 authored by Giuseppe's avatar Giuseppe
Browse files

now packagekit uses categories to fill groups

parent 6c9bcec1
......@@ -6,7 +6,7 @@
pkgbase='packagekit'
pkgname=('packagekit' 'packagekit-qt2')
pkgver=0.7.1
pkgrel=3
pkgrel=4
pkgdesc="A system designed to make installation and updates of packages easier."
arch=('i686' 'x86_64')
url="http://www.packagekit.org"
......@@ -16,16 +16,24 @@ makedepends=('dbus-glib' 'gobject-introspection' 'intltool'
'shared-mime-info' 'sqlite3' 'udev' 'automoc4')
options=('!libtool')
source=("http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"
'alpm.patch' 'Makefile.diff')
'alpm.patch'
'Makefile.diff'
'use-categories.patch'
'groups.patch')
sha256sums=('fc20a864cfbf53e83f7f95ccafab08ac1a7cd76a9413839f4539c7c6d4a99210'
'397b0007c4c689c5c2ef48dd807ad3c60d97061ccf4ba49046b00ae5e91fbd9e'
'0e6dbba9a6fa3adc004baaf24605bae9c5de1b408e24768e4aabbe12fda55dce')
'0e6dbba9a6fa3adc004baaf24605bae9c5de1b408e24768e4aabbe12fda55dce'
'645731060d23d1890b56018a16bb4a574c82bf9d2066f4f93d6aa27461e77dc3'
'7158d8033d8216d2000fc115e832d77591b102647a869f862ea8c016665f0a0d')
build() {
cd "$srcdir/PackageKit-$pkgver"
patch -Np1 -i "$srcdir/alpm.patch"
patch -Np1 -i "$srcdir/Makefile.diff"
patch -Np1 -i "$srcdir/use-categories.patch"
patch -Np1 -i "$srcdir/groups.patch"
sed -i 's@SUBDIRS = test@SUBDIRS =@' 'backends/Makefile.in'
sed -i 's@python @python2 @' 'lib/python/packagekit/Makefile.in'
......
diff -Naur PackageKit-0.7.1-orig//backends/alpm/groups.list PackageKit-0.7.1/backends/alpm/groups.list
--- PackageKit-0.7.1-orig//backends/alpm/groups.list 2011-08-04 12:42:46.000000000 +0200
+++ PackageKit-0.7.1/backends/alpm/groups.list 2012-03-05 19:56:37.662330535 +0100
@@ -1,65 +1,10 @@
-adesklet-desklets desktop-other
-base system
-base-devel programming
-bmp-io-plugins multimedia
-bmp-plugins multimedia
-cegcc programming
-compiz desktop-other
-compiz-fusion desktop-other
-compiz-fusion-gtk desktop-gnome
-compiz-fusion-kde desktop-kde
-compiz-gnome desktop-gnome
-compiz-gtk desktop-gnome
-compiz-kde desktop-kde
-e17-extra-svn desktop-other
-e17-libs-svn desktop-other
-e17-svn desktop-other
-fprint other
-gimp-help other
-gimp-plugins other
-gnome desktop-gnome
-gnome-extra desktop-gnome
-gnustep-core desktop-other
-google-gadgets desktop-other
-gstreamer0.10-plugins multimedia
-kde desktop-kde
-kdeaccessibility desktop-kde
-kdeadmin desktop-kde
-kdeartwork desktop-kde
-kdebase desktop-kde
-kdeedu desktop-kde
-kde-extragear desktop-kde
-kdegames desktop-kde
-kdegraphics desktop-kde
-kde-l10n desktop-kde
-kde-meta desktop-kde
-kdemultimedia desktop-kde
-kdenetwork desktop-kde
-kdepim desktop-kde
-kdeplasma-addons desktop-kde
-kdesdk desktop-kde
-kdetoys desktop-kde
-kdeutils desktop-kde
-kdewebdev desktop-kde
-koffice desktop-kde
-ladspa-plugins multimedia
-lib32 other
-lxde other
-qtcurve desktop-kde
-rox-desktop desktop-other
-telepathy other
-texlive-lang other
-texlive-lang-doc other
-texlive-most other
-texlive-most-doc other
-thunderbird-i18n other
-thunderbird-spell-i18n other
-vim-plugins other
-xfce4 desktop-xfce
-xfce4-goodies desktop-xfce
-xmms-effect-plugins multimedia
-xmms-io-plugins multimedia
-xmms-plugins multimedia
-xorg desktop-other
-xorg-input-drivers desktop-other
-xorg-video-drivers desktop-other
+system system
+programming programming
+multimedia multimedia
+network network
+communication communication
+office office
+education education
+accessories accessories
+games games
+graphics graphics
\ Manca newline alla fine del file
diff -Naur PackageKit-0.7.1-orig//backends/alpm/pk-backend-groups.c PackageKit-0.7.1/backends/alpm/pk-backend-groups.c
--- PackageKit-0.7.1-orig//backends/alpm/pk-backend-groups.c 2011-08-04 12:42:46.000000000 +0200
+++ PackageKit-0.7.1/backends/alpm/pk-backend-groups.c 2012-03-05 18:25:35.160996366 +0100
@@ -132,8 +132,8 @@
g_return_val_if_fail (pkg != NULL, NULL);
g_return_val_if_fail (grps != NULL, NULL);
- /* use the first group that we recognise */
- for (i = alpm_pkg_get_groups (pkg); i != NULL; i = i->next) {
+ /* use the first categories that we recognise */
+ for (i = alpm_pkg_get_categories (pkg); i != NULL; i = i->next) {
gpointer value = g_hash_table_lookup (grps, i->data);
if (value != NULL) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment