1 # Contributor: Francois Boulogne <fboulogne at april dot org>
2 # Maintainer: Francois Boulogne <fboulogne at april dot org>
6 pkgdesc="Mirall folder sharing"
8 url="https://github.com/dragotin/mirall"
10 depends=('qt' 'unison' 'sitecopy')
12 makedepends=('git' 'cmake')
18 _gitroot="https://github.com/dragotin/mirall.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
43 # LDFLAGS to remove harmful -Wl Flag
44 #export LDFLAGS="${LDFLAGS//-Wl,}"
48 cmake .. -DCMAKE_INSTALL_PREFIX='/usr/bin'
53 cd "$srcdir/$_gitname-build/build"
55 make DESTDIR=$pkgdir install
58 # vim:set ts=2 sw=2 et: