1 # Maintainer: Thomas Weißschuh <thomas_weissschuh || lavabit.com>
5 pkgdesc="Low friction, one-click anonymous file sharing."
7 url="https://gitorious.org/filetea/filetea"
10 optdepends=('jquery: to have automatic jquery updates')
12 backup=('etc/filetea/filetea.conf')
13 source=('filetea.rc.d'
16 _gitroot=git://gitorious.org/filetea/filetea
21 msg "Connecting to GIT server...."
23 if [[ -d "${_gitname}" ]]; then
24 cd "${_gitname}" && git pull origin
25 msg "The local files are updated."
27 git clone "${_gitroot}" "${_gitname}"
30 msg "GIT checkout done or server timeout"
31 msg "Starting build..."
33 rm -rf "${srcdir}/${_gitname}-build"
34 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
35 cd "${srcdir}/${_gitname}-build"
41 ./configure --prefix=/usr
46 cd "${srcdir}/${_gitname}-build"
47 mkdir -p ${pkgdir}/etc/{filetea,rc.d}
48 cp ${srcdir}/filetea.rc.d ${pkgdir}/etc/rc.d/filetea
49 cp filetea.conf ${pkgdir}/etc/filetea/
52 mkdir -p ${pkgdir}/lib/systemd/system/
53 cp ${srcdir}/filetea.service ${pkgdir}/lib/systemd/system/
55 # change config (if you have installed jquery to /usr/share/jquery/jquery.min.js)
56 # jquery{,-ui} packets in AUR have no static filenames atm
57 # sed -i 's|^#jquery-dir=.*$|jquery-dir=/usr/share/jquery/|' ${pkgdir}/etc/filetea/filetea.conf
58 # same goes for jquery-ui
59 # sed -i 's|^#jquery-ui-dir=.*$|jquery-dir=/usr/share/jquery/|' ${pkgdir}/etc/filetea/filetea.conf
61 make DESTDIR="${pkgdir}/" install
64 # vim:set ts=2 sw=2 et:
65 sha1sums=('e48b01a3b261495169e2d42da0cc9a776839aa27'
66 'baf43b7f5b5eb218245b727138c7b1d3a97d29fc')