1 # Maintainer: Dan Serban
6 pkgdesc="FuseISO frontend for the systray, patched for XFCE (libappindicator dependency removed)"
8 url=https://launchpad.net/mounty
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')
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}"