Date: Saturday, February 8, 2014 @ 20:28:51 Author: arodseth Revision: 105470
upgpkg: unetbootin 585-2 Added: unetbootin/trunk/unetbootin_polkit Modified: unetbootin/trunk/PKGBUILD unetbootin/trunk/org.archlinux.pkexec.unetbootin.policy unetbootin/trunk/unetbootin.install --------------------+ PKGBUILD | 29 +++++++++++++++-------------- unetbootin.install | 7 ++----- unetbootin_polkit | 6 ++++++ 3 files changed, 23 insertions(+), 19 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-02-08 19:27:45 UTC (rev 105469) +++ PKGBUILD 2014-02-08 19:28:51 UTC (rev 105470) @@ -6,33 +6,34 @@ pkgname=unetbootin pkgver=585 -pkgrel=1 +pkgrel=2 arch=('x86_64' 'i686') license=('GPL') pkgdesc='Create bootable Live USB drives' url='http://unetbootin.sourceforge.net/' -depends=('syslinux' 'p7zip' 'qt4' 'mtools' 'polkit' 'guisu') -optdepends=('polkit-gnome: to run unetbootin directly from menu') +depends=('syslinux' 'p7zip' 'qt4' 'mtools') +optdepends=('polkit: to run unetbootin directly from menu') +makedepends=('setconf') install=$pkgname.install source=("http://downloads.sourceforge.net/project/$pkgname/UNetbootin/$pkgver/$pkgname-source-$pkgver.tar.gz" - 'org.archlinux.pkexec.unetbootin.policy') + 'org.archlinux.pkexec.unetbootin.policy' + 'unetbootin_polkit') sha256sums=('63ee0459045c955b1ac7a6ae35be80363556e0f169565b29235e67b708ac9ccb' - '4de02f754f86707c92d20b1c7cfda323893d3d4ed54047b06c036588e677a87c') + 'd7cc55f8d7340be08c33d40443d413f8c15d8d012c29cab98ac5ab5a0fc57fb3' + 'b662e7082873602e9c224a291752e3c2274fb751018bfa23a7560f79c6ecb88f') +prepare() { + setconf unetbootin.desktop Exec /usr/bin/unetbootin_polkit +} + build() { - cd "$srcdir" - - msg2 'Compiling...' ./build-nostatic 1> output.log 2> error.log } package() { - cd "$srcdir" - - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname.elf" - ln -s /usr/bin/guisu "$pkgdir/usr/bin/$pkgname" - - mkdir -p "$pkgdir/usr/share/$pkgname" + install -d "$pkgdir/usr/share/$pkgname" + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + install -m755 "${pkgname}_polkit" "$pkgdir/usr/bin/${pkgname}_polkit" install -m644 "$pkgname"_*.qm "$pkgdir/usr/share/$pkgname/" install -Dm644 "$pkgname.desktop" \ "$pkgdir/usr/share/applications/$pkgname.desktop" Modified: org.archlinux.pkexec.unetbootin.policy =================================================================== (Binary files differ) Modified: unetbootin.install =================================================================== --- unetbootin.install 2014-02-08 19:27:45 UTC (rev 105469) +++ unetbootin.install 2014-02-08 19:28:51 UTC (rev 105470) @@ -1,16 +1,13 @@ post_install() { xdg-icon-resource forceupdate - 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() { - xdg-icon-resource forceupdate + post_install } post_remove() { - xdg-icon-resource forceupdate + post_install } # vim:set ts=2 sw=2 et: Added: unetbootin_polkit =================================================================== --- unetbootin_polkit (rev 0) +++ unetbootin_polkit 2014-02-08 19:28:51 UTC (rev 105470) @@ -0,0 +1,6 @@ +#!/bin/bash +if [ $(which pkexec) ]; then + pkexec --disable-internal-agent "/usr/bin/unetbootin" "$@" +else + /usr/bin/unetbootin "$@" +fi