[arch-commits] Commit in packagekit/repos (16 files)

Jonathan Conder jconder at nymeria.archlinux.org
Fri Mar 1 08:57:55 UTC 2013


    Date: Friday, March 1, 2013 @ 09:57:54
  Author: jconder
Revision: 85330

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  packagekit/repos/community-staging-i686/PKGBUILD
    (from rev 85329, packagekit/trunk/PKGBUILD)
  packagekit/repos/community-staging-i686/adopt.patch
    (from rev 85329, packagekit/trunk/adopt.patch)
  packagekit/repos/community-staging-i686/libarchive.patch
    (from rev 85329, packagekit/trunk/libarchive.patch)
  packagekit/repos/community-staging-i686/packagekit.install
    (from rev 85329, packagekit/trunk/packagekit.install)
  packagekit/repos/community-staging-x86_64/PKGBUILD
    (from rev 85329, packagekit/trunk/PKGBUILD)
  packagekit/repos/community-staging-x86_64/adopt.patch
    (from rev 85329, packagekit/trunk/adopt.patch)
  packagekit/repos/community-staging-x86_64/libarchive.patch
    (from rev 85329, packagekit/trunk/libarchive.patch)
  packagekit/repos/community-staging-x86_64/packagekit.install
    (from rev 85329, packagekit/trunk/packagekit.install)
Deleted:
  packagekit/repos/community-staging-i686/PKGBUILD
  packagekit/repos/community-staging-i686/adopt.patch
  packagekit/repos/community-staging-i686/libarchive.patch
  packagekit/repos/community-staging-i686/packagekit.install
  packagekit/repos/community-staging-x86_64/PKGBUILD
  packagekit/repos/community-staging-x86_64/adopt.patch
  packagekit/repos/community-staging-x86_64/libarchive.patch
  packagekit/repos/community-staging-x86_64/packagekit.install

---------------------------------------------+
 community-staging-i686/PKGBUILD             |  198 +++++++++++++-------------
 community-staging-i686/adopt.patch          |   26 +--
 community-staging-i686/libarchive.patch     |   78 +++++-----
 community-staging-i686/packagekit.install   |   22 +-
 community-staging-x86_64/PKGBUILD           |  198 +++++++++++++-------------
 community-staging-x86_64/adopt.patch        |   26 +--
 community-staging-x86_64/libarchive.patch   |   78 +++++-----
 community-staging-x86_64/packagekit.install |   22 +-
 8 files changed, 324 insertions(+), 324 deletions(-)

Deleted: community-staging-i686/PKGBUILD
===================================================================
--- community-staging-i686/PKGBUILD	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-i686/PKGBUILD	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,99 +0,0 @@
-# $Id$
-# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
-pkgbase='packagekit'
-pkgname=('packagekit' 'packagekit-qt2' 'packagekit-python')
-pkgver=0.7.6
-pkgrel=4
-pkgdesc="A system designed to make installation and updates of packages easier."
-arch=('i686' 'x86_64')
-url="http://www.packagekit.org"
-license=('GPL')
-makedepends=('dbus-glib' 'gobject-introspection' 'gtk-doc' 'intltool'
-             'networkmanager' 'pacman'  'pm-utils' 'polkit' 'python2' 'qt'
-             'shared-mime-info' 'sqlite' 'udev')
-options=('!libtool')
-source=("http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"
-        'adopt.patch'
-	'libarchive.patch')
-sha256sums=('82c0a553075d49add3c4f58e6e93f7f3613938809a4b8e36f46476e86981b45d'
-            'd0ee8580202a878571dddd470017731299c63e5c5120afe881bb41b9544322b8'
-	    '0d3798c8992afdc0930aa271b3e44deb55c046ab4adee25b4ec4c33bcdd950e2')
-
-build() {
-  cd "$srcdir/PackageKit-$pkgver"
-
-  sed -i 's at SUBDIRS = test at SUBDIRS =@' 'backends/Makefile.in'
-  sed -i 's at python @python2 @' 'lib/python/packagekit/Makefile.in'
-  sed -i 's at bin/python at bin/python2@' 'lib/python/packagekit/'*.py
-
-  patch -Np1 -i "$srcdir/adopt.patch"
-  patch -Np1 -i "$srcdir/libarchive.patch"
-
-  export PYTHON=/usr/bin/python2
-  ./configure --prefix=/usr \
-              --sysconfdir=/etc \
-              --localstatedir=/var \
-              --libexecdir=/usr/lib/PackageKit \
-              --enable-strict \
-              --disable-static \
-              --disable-gtk-doc \
-              --disable-tests \
-              --disable-local \
-              --disable-browser-plugin \
-              --disable-gstreamer-plugin \
-              --disable-gtk-module \
-              --disable-command-not-found \
-              --disable-cron \
-              --disable-debuginfo-install \
-              --enable-pm-utils \
-              --disable-dummy \
-              --enable-alpm \
-              --with-default-backend=alpm
-  make -s CFLAGS='-D_FILE_OFFSET_BITS=64'
-}
-
-package_packagekit() {
-  backup=('var/lib/PackageKit/transactions.db'
-          'etc/PackageKit/alpm.d/pacman.conf'
-          'etc/PackageKit/alpm.d/repos.list')
-  depends=('dbus-glib' 'pacman>=4.0.0' 'pacman<4.1.0' 'polkit'
-           'shared-mime-info' 'sqlite' 'udev')
-  optdepends=('networkmanager')
-  install='packagekit.install'
-
-  cd "$srcdir/PackageKit-$pkgver"
-
-  make DESTDIR="$pkgdir" install
-
-  rm -rf "$pkgdir/usr/include/PackageKit/packagekit-qt"*
-  rm -rf "$pkgdir/usr/lib/libpackagekit-qt"*
-  rm -rf "$pkgdir/usr/lib/pkgconfig/packagekit-qt"*
-  rm -rf "$pkgdir/usr/lib/cmake"
-
-  rm -rf "$pkgdir/usr/lib/python"*
-  rm -rf "$pkgdir/usr/share/PackageKit/website"
-
-  mkdir -p "$pkgdir/usr/share/bash-completion/completions"
-  mv "$pkgdir/etc/bash_completion.d/pk-completion.bash" \
-     "$pkgdir/usr/share/bash-completion/completions/pkcon"
-  rmdir "$pkgdir/etc/bash_completion.d"
-  touch "$pkgdir/var/log/PackageKit"
-}
-
-package_packagekit-qt2() {
-  depends=('packagekit' 'qt')
-  pkgdesc=('Qt bindings for PackageKit')
-
-  cd "$srcdir/PackageKit-$pkgver/lib/packagekit-qt2"
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_packagekit-python() {
-  depends=('packagekit' 'python2')
-  pkgdesc=('Python bindings for PackageKit')
-
-  cd "$srcdir/PackageKit-$pkgver/lib/python"
-
-  make DESTDIR="$pkgdir" install
-}

Copied: packagekit/repos/community-staging-i686/PKGBUILD (from rev 85329, packagekit/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,99 @@
+# $Id$
+# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
+pkgbase='packagekit'
+pkgname=('packagekit' 'packagekit-qt2' 'packagekit-python')
+pkgver=0.7.6
+pkgrel=5
+pkgdesc="A system designed to make installation and updates of packages easier."
+arch=('i686' 'x86_64')
+url="http://www.packagekit.org"
+license=('GPL')
+makedepends=('dbus-glib' 'gobject-introspection' 'gtk-doc' 'intltool'
+             'networkmanager' 'pacman'  'pm-utils' 'polkit' 'python2' 'qt4'
+             'shared-mime-info' 'sqlite' 'udev')
+options=('!libtool')
+source=("http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"
+        'adopt.patch'
+	'libarchive.patch')
+sha256sums=('82c0a553075d49add3c4f58e6e93f7f3613938809a4b8e36f46476e86981b45d'
+            'd0ee8580202a878571dddd470017731299c63e5c5120afe881bb41b9544322b8'
+	    '0d3798c8992afdc0930aa271b3e44deb55c046ab4adee25b4ec4c33bcdd950e2')
+
+build() {
+  cd "$srcdir/PackageKit-$pkgver"
+
+  sed -i 's at SUBDIRS = test at SUBDIRS =@' 'backends/Makefile.in'
+  sed -i 's at python @python2 @' 'lib/python/packagekit/Makefile.in'
+  sed -i 's at bin/python at bin/python2@' 'lib/python/packagekit/'*.py
+
+  patch -Np1 -i "$srcdir/adopt.patch"
+  patch -Np1 -i "$srcdir/libarchive.patch"
+
+  export PYTHON=/usr/bin/python2
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc \
+              --localstatedir=/var \
+              --libexecdir=/usr/lib/PackageKit \
+              --enable-strict \
+              --disable-static \
+              --disable-gtk-doc \
+              --disable-tests \
+              --disable-local \
+              --disable-browser-plugin \
+              --disable-gstreamer-plugin \
+              --disable-gtk-module \
+              --disable-command-not-found \
+              --disable-cron \
+              --disable-debuginfo-install \
+              --enable-pm-utils \
+              --disable-dummy \
+              --enable-alpm \
+              --with-default-backend=alpm
+  make -s CFLAGS='-D_FILE_OFFSET_BITS=64'
+}
+
+package_packagekit() {
+  backup=('var/lib/PackageKit/transactions.db'
+          'etc/PackageKit/alpm.d/pacman.conf'
+          'etc/PackageKit/alpm.d/repos.list')
+  depends=('dbus-glib' 'pacman>=4.0.0' 'pacman<4.1.0' 'polkit'
+           'shared-mime-info' 'sqlite' 'udev')
+  optdepends=('networkmanager')
+  install='packagekit.install'
+
+  cd "$srcdir/PackageKit-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  rm -rf "$pkgdir/usr/include/PackageKit/packagekit-qt"*
+  rm -rf "$pkgdir/usr/lib/libpackagekit-qt"*
+  rm -rf "$pkgdir/usr/lib/pkgconfig/packagekit-qt"*
+  rm -rf "$pkgdir/usr/lib/cmake"
+
+  rm -rf "$pkgdir/usr/lib/python"*
+  rm -rf "$pkgdir/usr/share/PackageKit/website"
+
+  mkdir -p "$pkgdir/usr/share/bash-completion/completions"
+  mv "$pkgdir/etc/bash_completion.d/pk-completion.bash" \
+     "$pkgdir/usr/share/bash-completion/completions/pkcon"
+  rmdir "$pkgdir/etc/bash_completion.d"
+  touch "$pkgdir/var/log/PackageKit"
+}
+
+package_packagekit-qt2() {
+  depends=('packagekit' 'qt4')
+  pkgdesc=('Qt bindings for PackageKit')
+
+  cd "$srcdir/PackageKit-$pkgver/lib/packagekit-qt2"
+
+  make DESTDIR="$pkgdir" install
+}
+
+package_packagekit-python() {
+  depends=('packagekit' 'python2')
+  pkgdesc=('Python bindings for PackageKit')
+
+  cd "$srcdir/PackageKit-$pkgver/lib/python"
+
+  make DESTDIR="$pkgdir" install
+}

Deleted: community-staging-i686/adopt.patch
===================================================================
--- community-staging-i686/adopt.patch	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-i686/adopt.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,13 +0,0 @@
-diff -ru a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
---- a/lib/packagekit-glib2/pk-client.c	2012-08-22 00:30:33.000000000 +1200
-+++ b/lib/packagekit-glib2/pk-client.c	2012-08-22 19:58:44.772432269 +1200
-@@ -4898,9 +4898,6 @@
- 
- 	/* connect */
- 	pk_client_proxy_connect (state);
--
--	state->ret = TRUE;
--	pk_client_state_finish (state, NULL);
- }
- 
- /**

Copied: packagekit/repos/community-staging-i686/adopt.patch (from rev 85329, packagekit/trunk/adopt.patch)
===================================================================
--- community-staging-i686/adopt.patch	                        (rev 0)
+++ community-staging-i686/adopt.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,13 @@
+diff -ru a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
+--- a/lib/packagekit-glib2/pk-client.c	2012-08-22 00:30:33.000000000 +1200
++++ b/lib/packagekit-glib2/pk-client.c	2012-08-22 19:58:44.772432269 +1200
+@@ -4898,9 +4898,6 @@
+ 
+ 	/* connect */
+ 	pk_client_proxy_connect (state);
+-
+-	state->ret = TRUE;
+-	pk_client_state_finish (state, NULL);
+ }
+ 
+ /**

Deleted: community-staging-i686/libarchive.patch
===================================================================
--- community-staging-i686/libarchive.patch	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-i686/libarchive.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,39 +0,0 @@
-diff -Nru a/lib/packagekit-glib2/pk-service-pack.c b/lib/packagekit-glib2/pk-service-pack.c
---- a/lib/packagekit-glib2/pk-service-pack.c	2012-08-17 00:36:38.000000000 +1200
-+++ b/lib/packagekit-glib2/pk-service-pack.c	2013-03-01 19:00:08.773738469 +1300
-@@ -207,7 +207,7 @@
- 	archive_read_support_format_tar (arch);
- 
- 	/* open the tar file */
--	r = archive_read_open_file (arch, filename, 10240);
-+	r = archive_read_open_filename (arch, filename, 10240);
- 	if (r) {
- 		g_set_error (error, PK_SERVICE_PACK_ERROR, PK_SERVICE_PACK_ERROR_FAILED_EXTRACTION,
- 				      "cannot open: %s", archive_error_string (arch));
-@@ -246,7 +246,7 @@
- 	/* close the archive */
- 	if (arch != NULL) {
- 		archive_read_close (arch);
--		archive_read_finish (arch);
-+		archive_read_free (arch);
- 	}
- 
- 	/* switch back to PWD */
-@@ -572,7 +572,7 @@
- 
- 	/* we can only write tar achives */
- 	arch = archive_write_new ();
--	archive_write_set_compression_none (arch);
-+	archive_write_add_filter_none (arch);
- 	archive_write_set_format_ustar (arch);
- 	archive_write_open_filename (arch, state->filename);
- 
-@@ -596,7 +596,7 @@
- 	/* close the archive */
- 	if (arch != NULL) {
- 		archive_write_close (arch);
--		archive_write_finish (arch);
-+		archive_write_free (arch);
- 	}
- 	return ret;
- }

Copied: packagekit/repos/community-staging-i686/libarchive.patch (from rev 85329, packagekit/trunk/libarchive.patch)
===================================================================
--- community-staging-i686/libarchive.patch	                        (rev 0)
+++ community-staging-i686/libarchive.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,39 @@
+diff -Nru a/lib/packagekit-glib2/pk-service-pack.c b/lib/packagekit-glib2/pk-service-pack.c
+--- a/lib/packagekit-glib2/pk-service-pack.c	2012-08-17 00:36:38.000000000 +1200
++++ b/lib/packagekit-glib2/pk-service-pack.c	2013-03-01 19:00:08.773738469 +1300
+@@ -207,7 +207,7 @@
+ 	archive_read_support_format_tar (arch);
+ 
+ 	/* open the tar file */
+-	r = archive_read_open_file (arch, filename, 10240);
++	r = archive_read_open_filename (arch, filename, 10240);
+ 	if (r) {
+ 		g_set_error (error, PK_SERVICE_PACK_ERROR, PK_SERVICE_PACK_ERROR_FAILED_EXTRACTION,
+ 				      "cannot open: %s", archive_error_string (arch));
+@@ -246,7 +246,7 @@
+ 	/* close the archive */
+ 	if (arch != NULL) {
+ 		archive_read_close (arch);
+-		archive_read_finish (arch);
++		archive_read_free (arch);
+ 	}
+ 
+ 	/* switch back to PWD */
+@@ -572,7 +572,7 @@
+ 
+ 	/* we can only write tar achives */
+ 	arch = archive_write_new ();
+-	archive_write_set_compression_none (arch);
++	archive_write_add_filter_none (arch);
+ 	archive_write_set_format_ustar (arch);
+ 	archive_write_open_filename (arch, state->filename);
+ 
+@@ -596,7 +596,7 @@
+ 	/* close the archive */
+ 	if (arch != NULL) {
+ 		archive_write_close (arch);
+-		archive_write_finish (arch);
++		archive_write_free (arch);
+ 	}
+ 	return ret;
+ }

Deleted: community-staging-i686/packagekit.install
===================================================================
--- community-staging-i686/packagekit.install	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-i686/packagekit.install	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,11 +0,0 @@
-post_install() {
-	update-mime-database usr/share/mime &> /dev/null
-}
-
-post_upgrade() {
-	post_install
-}
-
-post_remove() {
-	post_install
-}

Copied: packagekit/repos/community-staging-i686/packagekit.install (from rev 85329, packagekit/trunk/packagekit.install)
===================================================================
--- community-staging-i686/packagekit.install	                        (rev 0)
+++ community-staging-i686/packagekit.install	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,11 @@
+post_install() {
+	update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Deleted: community-staging-x86_64/PKGBUILD
===================================================================
--- community-staging-x86_64/PKGBUILD	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-x86_64/PKGBUILD	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,99 +0,0 @@
-# $Id$
-# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
-pkgbase='packagekit'
-pkgname=('packagekit' 'packagekit-qt2' 'packagekit-python')
-pkgver=0.7.6
-pkgrel=4
-pkgdesc="A system designed to make installation and updates of packages easier."
-arch=('i686' 'x86_64')
-url="http://www.packagekit.org"
-license=('GPL')
-makedepends=('dbus-glib' 'gobject-introspection' 'gtk-doc' 'intltool'
-             'networkmanager' 'pacman'  'pm-utils' 'polkit' 'python2' 'qt'
-             'shared-mime-info' 'sqlite' 'udev')
-options=('!libtool')
-source=("http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"
-        'adopt.patch'
-	'libarchive.patch')
-sha256sums=('82c0a553075d49add3c4f58e6e93f7f3613938809a4b8e36f46476e86981b45d'
-            'd0ee8580202a878571dddd470017731299c63e5c5120afe881bb41b9544322b8'
-	    '0d3798c8992afdc0930aa271b3e44deb55c046ab4adee25b4ec4c33bcdd950e2')
-
-build() {
-  cd "$srcdir/PackageKit-$pkgver"
-
-  sed -i 's at SUBDIRS = test at SUBDIRS =@' 'backends/Makefile.in'
-  sed -i 's at python @python2 @' 'lib/python/packagekit/Makefile.in'
-  sed -i 's at bin/python at bin/python2@' 'lib/python/packagekit/'*.py
-
-  patch -Np1 -i "$srcdir/adopt.patch"
-  patch -Np1 -i "$srcdir/libarchive.patch"
-
-  export PYTHON=/usr/bin/python2
-  ./configure --prefix=/usr \
-              --sysconfdir=/etc \
-              --localstatedir=/var \
-              --libexecdir=/usr/lib/PackageKit \
-              --enable-strict \
-              --disable-static \
-              --disable-gtk-doc \
-              --disable-tests \
-              --disable-local \
-              --disable-browser-plugin \
-              --disable-gstreamer-plugin \
-              --disable-gtk-module \
-              --disable-command-not-found \
-              --disable-cron \
-              --disable-debuginfo-install \
-              --enable-pm-utils \
-              --disable-dummy \
-              --enable-alpm \
-              --with-default-backend=alpm
-  make -s CFLAGS='-D_FILE_OFFSET_BITS=64'
-}
-
-package_packagekit() {
-  backup=('var/lib/PackageKit/transactions.db'
-          'etc/PackageKit/alpm.d/pacman.conf'
-          'etc/PackageKit/alpm.d/repos.list')
-  depends=('dbus-glib' 'pacman>=4.0.0' 'pacman<4.1.0' 'polkit'
-           'shared-mime-info' 'sqlite' 'udev')
-  optdepends=('networkmanager')
-  install='packagekit.install'
-
-  cd "$srcdir/PackageKit-$pkgver"
-
-  make DESTDIR="$pkgdir" install
-
-  rm -rf "$pkgdir/usr/include/PackageKit/packagekit-qt"*
-  rm -rf "$pkgdir/usr/lib/libpackagekit-qt"*
-  rm -rf "$pkgdir/usr/lib/pkgconfig/packagekit-qt"*
-  rm -rf "$pkgdir/usr/lib/cmake"
-
-  rm -rf "$pkgdir/usr/lib/python"*
-  rm -rf "$pkgdir/usr/share/PackageKit/website"
-
-  mkdir -p "$pkgdir/usr/share/bash-completion/completions"
-  mv "$pkgdir/etc/bash_completion.d/pk-completion.bash" \
-     "$pkgdir/usr/share/bash-completion/completions/pkcon"
-  rmdir "$pkgdir/etc/bash_completion.d"
-  touch "$pkgdir/var/log/PackageKit"
-}
-
-package_packagekit-qt2() {
-  depends=('packagekit' 'qt')
-  pkgdesc=('Qt bindings for PackageKit')
-
-  cd "$srcdir/PackageKit-$pkgver/lib/packagekit-qt2"
-
-  make DESTDIR="$pkgdir" install
-}
-
-package_packagekit-python() {
-  depends=('packagekit' 'python2')
-  pkgdesc=('Python bindings for PackageKit')
-
-  cd "$srcdir/PackageKit-$pkgver/lib/python"
-
-  make DESTDIR="$pkgdir" install
-}

Copied: packagekit/repos/community-staging-x86_64/PKGBUILD (from rev 85329, packagekit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,99 @@
+# $Id$
+# Maintainer: Jonathan Conder <jonno.conder at gmail.com>
+pkgbase='packagekit'
+pkgname=('packagekit' 'packagekit-qt2' 'packagekit-python')
+pkgver=0.7.6
+pkgrel=5
+pkgdesc="A system designed to make installation and updates of packages easier."
+arch=('i686' 'x86_64')
+url="http://www.packagekit.org"
+license=('GPL')
+makedepends=('dbus-glib' 'gobject-introspection' 'gtk-doc' 'intltool'
+             'networkmanager' 'pacman'  'pm-utils' 'polkit' 'python2' 'qt4'
+             'shared-mime-info' 'sqlite' 'udev')
+options=('!libtool')
+source=("http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"
+        'adopt.patch'
+	'libarchive.patch')
+sha256sums=('82c0a553075d49add3c4f58e6e93f7f3613938809a4b8e36f46476e86981b45d'
+            'd0ee8580202a878571dddd470017731299c63e5c5120afe881bb41b9544322b8'
+	    '0d3798c8992afdc0930aa271b3e44deb55c046ab4adee25b4ec4c33bcdd950e2')
+
+build() {
+  cd "$srcdir/PackageKit-$pkgver"
+
+  sed -i 's at SUBDIRS = test at SUBDIRS =@' 'backends/Makefile.in'
+  sed -i 's at python @python2 @' 'lib/python/packagekit/Makefile.in'
+  sed -i 's at bin/python at bin/python2@' 'lib/python/packagekit/'*.py
+
+  patch -Np1 -i "$srcdir/adopt.patch"
+  patch -Np1 -i "$srcdir/libarchive.patch"
+
+  export PYTHON=/usr/bin/python2
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc \
+              --localstatedir=/var \
+              --libexecdir=/usr/lib/PackageKit \
+              --enable-strict \
+              --disable-static \
+              --disable-gtk-doc \
+              --disable-tests \
+              --disable-local \
+              --disable-browser-plugin \
+              --disable-gstreamer-plugin \
+              --disable-gtk-module \
+              --disable-command-not-found \
+              --disable-cron \
+              --disable-debuginfo-install \
+              --enable-pm-utils \
+              --disable-dummy \
+              --enable-alpm \
+              --with-default-backend=alpm
+  make -s CFLAGS='-D_FILE_OFFSET_BITS=64'
+}
+
+package_packagekit() {
+  backup=('var/lib/PackageKit/transactions.db'
+          'etc/PackageKit/alpm.d/pacman.conf'
+          'etc/PackageKit/alpm.d/repos.list')
+  depends=('dbus-glib' 'pacman>=4.0.0' 'pacman<4.1.0' 'polkit'
+           'shared-mime-info' 'sqlite' 'udev')
+  optdepends=('networkmanager')
+  install='packagekit.install'
+
+  cd "$srcdir/PackageKit-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+
+  rm -rf "$pkgdir/usr/include/PackageKit/packagekit-qt"*
+  rm -rf "$pkgdir/usr/lib/libpackagekit-qt"*
+  rm -rf "$pkgdir/usr/lib/pkgconfig/packagekit-qt"*
+  rm -rf "$pkgdir/usr/lib/cmake"
+
+  rm -rf "$pkgdir/usr/lib/python"*
+  rm -rf "$pkgdir/usr/share/PackageKit/website"
+
+  mkdir -p "$pkgdir/usr/share/bash-completion/completions"
+  mv "$pkgdir/etc/bash_completion.d/pk-completion.bash" \
+     "$pkgdir/usr/share/bash-completion/completions/pkcon"
+  rmdir "$pkgdir/etc/bash_completion.d"
+  touch "$pkgdir/var/log/PackageKit"
+}
+
+package_packagekit-qt2() {
+  depends=('packagekit' 'qt4')
+  pkgdesc=('Qt bindings for PackageKit')
+
+  cd "$srcdir/PackageKit-$pkgver/lib/packagekit-qt2"
+
+  make DESTDIR="$pkgdir" install
+}
+
+package_packagekit-python() {
+  depends=('packagekit' 'python2')
+  pkgdesc=('Python bindings for PackageKit')
+
+  cd "$srcdir/PackageKit-$pkgver/lib/python"
+
+  make DESTDIR="$pkgdir" install
+}

Deleted: community-staging-x86_64/adopt.patch
===================================================================
--- community-staging-x86_64/adopt.patch	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-x86_64/adopt.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,13 +0,0 @@
-diff -ru a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
---- a/lib/packagekit-glib2/pk-client.c	2012-08-22 00:30:33.000000000 +1200
-+++ b/lib/packagekit-glib2/pk-client.c	2012-08-22 19:58:44.772432269 +1200
-@@ -4898,9 +4898,6 @@
- 
- 	/* connect */
- 	pk_client_proxy_connect (state);
--
--	state->ret = TRUE;
--	pk_client_state_finish (state, NULL);
- }
- 
- /**

Copied: packagekit/repos/community-staging-x86_64/adopt.patch (from rev 85329, packagekit/trunk/adopt.patch)
===================================================================
--- community-staging-x86_64/adopt.patch	                        (rev 0)
+++ community-staging-x86_64/adopt.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,13 @@
+diff -ru a/lib/packagekit-glib2/pk-client.c b/lib/packagekit-glib2/pk-client.c
+--- a/lib/packagekit-glib2/pk-client.c	2012-08-22 00:30:33.000000000 +1200
++++ b/lib/packagekit-glib2/pk-client.c	2012-08-22 19:58:44.772432269 +1200
+@@ -4898,9 +4898,6 @@
+ 
+ 	/* connect */
+ 	pk_client_proxy_connect (state);
+-
+-	state->ret = TRUE;
+-	pk_client_state_finish (state, NULL);
+ }
+ 
+ /**

Deleted: community-staging-x86_64/libarchive.patch
===================================================================
--- community-staging-x86_64/libarchive.patch	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-x86_64/libarchive.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,39 +0,0 @@
-diff -Nru a/lib/packagekit-glib2/pk-service-pack.c b/lib/packagekit-glib2/pk-service-pack.c
---- a/lib/packagekit-glib2/pk-service-pack.c	2012-08-17 00:36:38.000000000 +1200
-+++ b/lib/packagekit-glib2/pk-service-pack.c	2013-03-01 19:00:08.773738469 +1300
-@@ -207,7 +207,7 @@
- 	archive_read_support_format_tar (arch);
- 
- 	/* open the tar file */
--	r = archive_read_open_file (arch, filename, 10240);
-+	r = archive_read_open_filename (arch, filename, 10240);
- 	if (r) {
- 		g_set_error (error, PK_SERVICE_PACK_ERROR, PK_SERVICE_PACK_ERROR_FAILED_EXTRACTION,
- 				      "cannot open: %s", archive_error_string (arch));
-@@ -246,7 +246,7 @@
- 	/* close the archive */
- 	if (arch != NULL) {
- 		archive_read_close (arch);
--		archive_read_finish (arch);
-+		archive_read_free (arch);
- 	}
- 
- 	/* switch back to PWD */
-@@ -572,7 +572,7 @@
- 
- 	/* we can only write tar achives */
- 	arch = archive_write_new ();
--	archive_write_set_compression_none (arch);
-+	archive_write_add_filter_none (arch);
- 	archive_write_set_format_ustar (arch);
- 	archive_write_open_filename (arch, state->filename);
- 
-@@ -596,7 +596,7 @@
- 	/* close the archive */
- 	if (arch != NULL) {
- 		archive_write_close (arch);
--		archive_write_finish (arch);
-+		archive_write_free (arch);
- 	}
- 	return ret;
- }

Copied: packagekit/repos/community-staging-x86_64/libarchive.patch (from rev 85329, packagekit/trunk/libarchive.patch)
===================================================================
--- community-staging-x86_64/libarchive.patch	                        (rev 0)
+++ community-staging-x86_64/libarchive.patch	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,39 @@
+diff -Nru a/lib/packagekit-glib2/pk-service-pack.c b/lib/packagekit-glib2/pk-service-pack.c
+--- a/lib/packagekit-glib2/pk-service-pack.c	2012-08-17 00:36:38.000000000 +1200
++++ b/lib/packagekit-glib2/pk-service-pack.c	2013-03-01 19:00:08.773738469 +1300
+@@ -207,7 +207,7 @@
+ 	archive_read_support_format_tar (arch);
+ 
+ 	/* open the tar file */
+-	r = archive_read_open_file (arch, filename, 10240);
++	r = archive_read_open_filename (arch, filename, 10240);
+ 	if (r) {
+ 		g_set_error (error, PK_SERVICE_PACK_ERROR, PK_SERVICE_PACK_ERROR_FAILED_EXTRACTION,
+ 				      "cannot open: %s", archive_error_string (arch));
+@@ -246,7 +246,7 @@
+ 	/* close the archive */
+ 	if (arch != NULL) {
+ 		archive_read_close (arch);
+-		archive_read_finish (arch);
++		archive_read_free (arch);
+ 	}
+ 
+ 	/* switch back to PWD */
+@@ -572,7 +572,7 @@
+ 
+ 	/* we can only write tar achives */
+ 	arch = archive_write_new ();
+-	archive_write_set_compression_none (arch);
++	archive_write_add_filter_none (arch);
+ 	archive_write_set_format_ustar (arch);
+ 	archive_write_open_filename (arch, state->filename);
+ 
+@@ -596,7 +596,7 @@
+ 	/* close the archive */
+ 	if (arch != NULL) {
+ 		archive_write_close (arch);
+-		archive_write_finish (arch);
++		archive_write_free (arch);
+ 	}
+ 	return ret;
+ }

Deleted: community-staging-x86_64/packagekit.install
===================================================================
--- community-staging-x86_64/packagekit.install	2013-03-01 08:56:01 UTC (rev 85329)
+++ community-staging-x86_64/packagekit.install	2013-03-01 08:57:54 UTC (rev 85330)
@@ -1,11 +0,0 @@
-post_install() {
-	update-mime-database usr/share/mime &> /dev/null
-}
-
-post_upgrade() {
-	post_install
-}
-
-post_remove() {
-	post_install
-}

Copied: packagekit/repos/community-staging-x86_64/packagekit.install (from rev 85329, packagekit/trunk/packagekit.install)
===================================================================
--- community-staging-x86_64/packagekit.install	                        (rev 0)
+++ community-staging-x86_64/packagekit.install	2013-03-01 08:57:54 UTC (rev 85330)
@@ -0,0 +1,11 @@
+post_install() {
+	update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}




More information about the arch-commits mailing list