1 # Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com>
2 # Contributor: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
4 # Building the documentation requires ikiwiki.
5 # If you don't want to build the documentation turns this to 0.
11 #8fc0649f4ceeafacece4c26e73eb236b8b1b33f4
13 pkgdesc='manage files with git, without checking their contents into git'
14 arch=('i686' 'x86_64')
15 url="http://git-annex.branchable.com/"
17 depends=(git uuid openssh rsync pcre curl)
19 # optional build dependency: hS3
32 [ $_build_docs = 1 ] && makedepends=(ikiwiki "${makedepends[@]}")
33 _gitroot=git://git.kitenet.net/git-annex
35 _gitbranch=old-monad-control
40 if [ -d $_gitrepo ] ; then
42 git fetch origin || return 1
43 git reset --hard origin/$_gitbranch || return 1
44 msg "The local files are updated."
46 git clone --depth=1 "${_gitroot}" $_gitrepo || return 1
48 cd "${srcdir}/$_gitrepo"
49 git checkout $_gitbranch || return 1
50 rsync -aH --del "${srcdir}/$_gitrepo/" "${srcdir}/build/" || return 1
53 msg "GIT checkout done or server timeout"
54 msg "Starting make..."
56 sed -i -e 's|\$(bins): sources|\$(bins): sources Remote/S3.o|' Makefile
58 # haskell-testpack is required only to run the tests
64 make DESTDIR=$pkgdir install