Index: PKGBUILD =================================================================== --- PKGBUILD (revision 85742) +++ PKGBUILD (working copy) @@ -6,17 +6,18 @@ pkgname=unetbootin pkgver=583 -pkgrel=4 +pkgrel=5 arch=('x86_64' 'i686') license=('GPL') pkgdesc='Create bootable Live USB drives' url='http://unetbootin.sourceforge.net/' -depends=('syslinux' 'p7zip' 'qt4' 'mtools' 'xorg-xmessage' 'desktop-file-utils' 'gtk-update-icon-cache' 'polkit' 'polkit-gnome') +depends=('syslinux' 'p7zip' 'qt4' 'mtools') +optdepends=('polkit-gnome: to run unetbootin directly from menu') install=$pkgname.install source=("http://downloads.sourceforge.net/project/$pkgname/UNetbootin/$pkgver/$pkgname-source-$pkgver.tar.gz" 'org.archlinux.pkexec.unetbootin.policy') sha256sums=('0fba985a6d4a7a4c388cb99d100cb46fbd9bbae831501ad887a8d5f148a24029' - '4de02f754f86707c92d20b1c7cfda323893d3d4ed54047b06c036588e677a87c') + '6d1f329dbd6f618ed13b6d5aba3b6c030554fd09af74ef6af43bc66399650e58') build() { cd "$srcdir" @@ -25,16 +26,12 @@ lrelease "$pkgname.pro" qmake make - - echo '#!/bin/sh' > "$pkgname.sh" - echo 'pkexec /usr/bin/unetbootin.elf' >> "$pkgname.sh" } package() { cd "$srcdir" - install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname.elf" - install -Dm755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" mkdir -p "$pkgdir/usr/share/$pkgname" install -m644 "$pkgname"_*.qm "$pkgdir/usr/share/$pkgname/" @@ -46,6 +43,8 @@ done install -Dm644 'org.archlinux.pkexec.unetbootin.policy' \ "$pkgdir/usr/share/polkit-1/actions/org.archlinux.pkexec.unetbootin.policy" + + sed -i -e "s|^Exec=.*|Exec=pkexec --disable-internal-agent /usr/bin/unetbootin|" "${pkgdir}/usr/share/applications/unetbootin.desktop" } # vim:set ts=2 sw=2 et: Index: org.archlinux.pkexec.unetbootin.policy =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/xml Index: unetbootin.install =================================================================== --- unetbootin.install (revision 85742) +++ unetbootin.install (working copy) @@ -1,9 +1,5 @@ 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.' + xdg-icon-resource forceupdate } post_upgrade() {