updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mounty-xfce / PKGBUILD
blob95be1a9103c0e51b0f2f96786a03089d9325851f
1 # Maintainer: Dan Serban
3 pkgname=mounty-xfce
4 pkgver=0.1.3
5 pkgrel=1
6 pkgdesc="FuseISO frontend for the systray, patched for XFCE (libappindicator dependency removed)"
7 arch=(any)
8 url=https://launchpad.net/mounty
9 license=(GPLv3)
10 depends=(fuseiso python2 python2-gconf pygobject pygtk python-notify thunar)
11 optdepends=(xfce4-notifyd)
12 source=(diskimage.py mounty.py)
13 md5sums=('72e0fd2f6af890e9950c6537c9d260bd'
14          'bff20bf0d8a1803bb0026219e3dfe8ba')
16 build()
18   install -Dm644 diskimage.py "${pkgdir}"/usr/share/mounty/diskimage.py
19   install -Dm644 mounty.py "${pkgdir}"/usr/share/mounty/mounty.py
20   mkdir -p "$pkgdir/usr/bin"
21   USRBINFILE="${pkgdir}"/usr/bin/${pkgname}
22   echo '#!/bin/bash' > "${USRBINFILE}"
23   echo 'cd /usr/share/mounty' >> "${USRBINFILE}"
24   echo 'python2 mounty.py' >> "${USRBINFILE}"
25   chmod +x "${USRBINFILE}"
26   mkdir -p "${pkgdir}"/etc/xdg/autostart
27   DESKTOPFILE="${pkgdir}"/etc/xdg/autostart/${pkgname}.desktop
28   echo "[Desktop Entry]" > "${DESKTOPFILE}"
29   echo "Name=Mounty (CD Image Mounter)" >> "${DESKTOPFILE}"
30   echo "Comment=Mount CD images" >> "${DESKTOPFILE}"
31   echo "Icon=media-cdrom" >> "${DESKTOPFILE}"
32   echo "Exec=mounty-xfce" >> "${DESKTOPFILE}"
33   echo "Terminal=false" >> "${DESKTOPFILE}"
34   echo "Type=Application" >> "${DESKTOPFILE}"
35   echo "Categories=GTK;Utility;Core;" >> "${DESKTOPFILE}"
36   echo "NotShowIn=KDE;" >> "${DESKTOPFILE}"