updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / syncany-bzr / PKGBUILD
blob13f1d06357d806c7137c9d6fbf83ad8752a6a161
1 # Maintainer: Dan Serban
3 pkgname=syncany-bzr
4 pkgver=latest
5 pkgrel=1
6 pkgdesc="An open-source cloud storage and filesharing application (a Dropbox work-alike with more flexibility in terms of storage type and provider)"
7 arch=(any)
8 url=http://www.syncany.org/
9 license=(GPL)
10 depends=(java-runtime python2 python-notify)
11 makedepends=(bzr apache-ant java-environment)
13 build()
15   bzr branch lp:syncany
16   cd syncany/syncany
17   /usr/share/java/apache-ant/bin/ant
18   mv dist syncany
19   mkdir -p "${pkgdir}"/usr/share
20   mv syncany "${pkgdir}"/usr/share/
21   sed -i 's/Xms512m/Xmx256m/' "${pkgdir}"/usr/share/syncany/bin/syncany.sh
22   mkdir -p "${pkgdir}"/usr/bin
23   USRBINFILE="${pkgdir}"/usr/bin/syncany
24   echo '#!/bin/bash' > "${USRBINFILE}"
25   echo '/usr/share/syncany/bin/syncany.sh' >> "${USRBINFILE}"
26   chmod +x "${USRBINFILE}"
27   mkdir -p "${pkgdir}"/usr/share/applications
28   DESKTOPFILE="${pkgdir}"/usr/share/applications/syncany.desktop
29   echo "[Desktop Entry]" > "${DESKTOPFILE}"
30   echo "Name=Syncany" >> "${DESKTOPFILE}"
31   echo "Comment=Cloud storage and filesharing application" >> "${DESKTOPFILE}"
32   echo "Exec=/usr/share/syncany/bin/syncany.sh" >> "${DESKTOPFILE}"
33   echo "Terminal=false" >> "${DESKTOPFILE}"
34   echo "Type=Application" >> "${DESKTOPFILE}"
35   echo "Categories=Network;" >> "${DESKTOPFILE}"