1 # Maintainer: Dan Serban
6 pkgdesc="An open-source cloud storage and filesharing application (a Dropbox work-alike with more flexibility in terms of storage type and provider)"
8 url=http://www.syncany.org/
10 depends=(java-runtime python2 python-notify)
11 makedepends=(bzr apache-ant java-environment)
17 /usr/share/java/apache-ant/bin/ant
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}"