1 # Maintainer: Dan Serban
2 # Contributor: Henrik Olsson
7 pkgdesc="Small and highly customizable twin-panel file manager for Linux with support for plugins"
9 url=https://code.google.com/p/sunflower-fm/
11 depends=(pygtk python-notify vte)
16 rm sunflower.tar.gz 2>/dev/null || true
17 _url=$(lynx -dump https://code.google.com/p/sunflower-fm/downloads/list | grep -o http.*tgz$ | head -1)
18 wget -O sunflower.tar.gz "${_url}"
19 bsdtar -xf sunflower.tar.gz
20 mv Sunflower sunflower
21 mkdir -p "${pkgdir}"/usr/share
22 mv sunflower "${pkgdir}"/usr/share/
23 mkdir -p "${pkgdir}"/usr/share/pixmaps
24 mv "${pkgdir}"/usr/share/sunflower/images/sunflower.svg "${pkgdir}"/usr/share/pixmaps/
25 mkdir -p "${pkgdir}"/usr/bin
26 USRBINFILE="${pkgdir}"/usr/bin/sunflower
27 echo '#!/bin/bash' > "${USRBINFILE}"
28 echo 'exec python2 /usr/share/sunflower/Sunflower.py' >> "${USRBINFILE}"
29 chmod +x "${USRBINFILE}"
30 mkdir -p "${pkgdir}"/usr/share/applications
31 DESKTOPFILE="${pkgdir}"/usr/share/applications/sunflower.desktop
32 echo "[Desktop Entry]" > "${DESKTOPFILE}"
33 echo "Version=1.0" >> "${DESKTOPFILE}"
34 echo "Type=Application" >> "${DESKTOPFILE}"
35 echo "Name=Sunflower" >> "${DESKTOPFILE}"
36 echo "GenericName=File Manager" >> "${DESKTOPFILE}"
37 echo "Comment=Sunflower is a small and highly customizable twin-panel file manager" >> "${DESKTOPFILE}"
38 echo "Exec=sunflower" >> "${DESKTOPFILE}"
39 echo "Icon=sunflower" >> "${DESKTOPFILE}"
40 echo "Terminal=false" >> "${DESKTOPFILE}"
41 echo "StartupNotify=true" >> "${DESKTOPFILE}"
42 echo "Type=Application" >> "${DESKTOPFILE}"
43 echo "Categories=System;Utility;Core;GTK;FileTools;FileManager;" >> "${DESKTOPFILE}"