updated on Wed Jan 11 04:01:16 UTC 2012
[aur-mirror.git] / sunflower / PKGBUILD
blob000536117f533ea53d8bc1cd19e7bd5dc25ae1b0
1 # Maintainer: Dan Serban
2 # Contributor: Henrik Olsson
4 pkgname=sunflower
5 pkgver=0.1a_xx.latest
6 pkgrel=1
7 pkgdesc="Small and highly customizable twin-panel file manager for Linux with support for plugins"
8 arch=(any)
9 url=https://code.google.com/p/sunflower-fm/
10 license=(GPLv3)
11 depends=(pygtk python-notify vte)
12 makedepends=(lynx)
14 build()
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}"