Date: Saturday, March 16, 2013 @ 22:09:32 Author: arodseth Revision: 86428
Applied changes from FS#34166. Now uses guisu. Modified: unetbootin/trunk/PKGBUILD unetbootin/trunk/unetbootin.install --------------------+ PKGBUILD | 10 ++++------ unetbootin.install | 7 +++---- 2 files changed, 7 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-03-16 20:57:42 UTC (rev 86427) +++ PKGBUILD 2013-03-16 21:09:32 UTC (rev 86428) @@ -6,12 +6,13 @@ 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' 'polkit' 'guisu') +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') @@ -25,16 +26,13 @@ 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" + ln -s /usr/bin/guisu "$pkgdir/usr/bin/$pkgname" mkdir -p "$pkgdir/usr/share/$pkgname" install -m644 "$pkgname"_*.qm "$pkgdir/usr/share/$pkgname/" Modified: unetbootin.install =================================================================== --- unetbootin.install 2013-03-16 20:57:42 UTC (rev 86427) +++ unetbootin.install 2013-03-16 21:09:32 UTC (rev 86428) @@ -1,17 +1,16 @@ post_install() { - gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor - update-desktop-database -q + 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() { - post_install + xdg-icon-resource forceupdate } post_remove() { - post_install + xdg-icon-resource forceupdate } # vim:set ts=2 sw=2 et: