[arch-commits] Commit in unetbootin/trunk (PKGBUILD unetbootin.install)

Alexander Rødseth arodseth at nymeria.archlinux.org
Thu Jan 24 15:29:09 UTC 2013


    Date: Thursday, January 24, 2013 @ 16:29:09
  Author: arodseth
Revision: 82831

pkexec fix + message

Modified:
  unetbootin/trunk/PKGBUILD
  unetbootin/trunk/unetbootin.install

--------------------+
 PKGBUILD           |   12 ++++++------
 unetbootin.install |    3 +++
 2 files changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-01-24 15:25:20 UTC (rev 82830)
+++ PKGBUILD	2013-01-24 15:29:09 UTC (rev 82831)
@@ -6,18 +6,16 @@
 
 pkgname=unetbootin
 pkgver=583
-pkgrel=1
+pkgrel=3
 arch=('x86_64' 'i686')
 license=('GPL')
 pkgdesc='Create bootable Live USB drives'
-url="http://unetbootin.sourceforge.net/"
-depends=('syslinux' 'p7zip' 'qt' 'mtools' 'xorg-xmessage' 'desktop-file-utils' 'gtk-update-icon-cache' 'polkit')
+url='http://unetbootin.sourceforge.net/'
+depends=('syslinux' 'p7zip' 'qt' 'mtools' 'xorg-xmessage' 'desktop-file-utils' 'gtk-update-icon-cache' 'polkit' 'polkit-gnome')
 install=$pkgname.install
 source=("http://downloads.sourceforge.net/project/$pkgname/UNetbootin/$pkgver/$pkgname-source-$pkgver.tar.gz"
-        "$pkgname.sh"
         'org.archlinux.pkexec.unetbootin.policy')
 sha256sums=('0fba985a6d4a7a4c388cb99d100cb46fbd9bbae831501ad887a8d5f148a24029'
-            '77cd9824c4aecf668ce8b53418d7ac9ebb191b4a592c9ba9d2e430545476cb01'
             '4de02f754f86707c92d20b1c7cfda323893d3d4ed54047b06c036588e677a87c')
 
 build() {
@@ -27,6 +25,9 @@
   lrelease "$pkgname.pro"
   qmake
   make
+
+  echo '#!/bin/sh' > "$pkgname.sh"
+  echo 'pkexec /usr/bin/unetbootin.elf' >> "$pkgname.sh"
 }
 
 package() {
@@ -34,7 +35,6 @@
 
   install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname.elf"
   install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
-  #ln -s "/usr/bin/ponysu" "$pkgdir/usr/bin/$pkgname"
 
   mkdir -p "$pkgdir/usr/share/$pkgname"
   install -m644 "$pkgname"_*.qm "$pkgdir/usr/share/$pkgname/"

Modified: unetbootin.install
===================================================================
--- unetbootin.install	2013-01-24 15:25:20 UTC (rev 82830)
+++ unetbootin.install	2013-01-24 15:29:09 UTC (rev 82831)
@@ -1,6 +1,9 @@
 post_install() {
   gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
   update-desktop-database -q
+  echo 'If you use a lightweight windowmanager, remember to run'
+  echo '/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to enable'
+  echo 'graphical authentication, which may be needed for pkexec to work.'
 }
 
 post_upgrade() {




More information about the arch-commits mailing list