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 _githash=c9aab2a5b65d1559133ef9cc140bd030f79bb2f4
12 pkgdesc='manage files with git, without checking their contents into git'
13 arch=('i686' 'x86_64')
14 url="http://git-annex.branchable.com/"
16 depends=(git util-linux openssh rsync pcre curl)
18 # optional build dependency: hS3
31 [ $_build_docs = 1 ] && makedepends=(ikiwiki "${makedepends[@]}")
32 _gitroot=git://git.kitenet.net/git-annex
38 if [ -d $_gitrepo ] ; then
40 git fetch origin || return 1
41 git reset --hard origin/master || return 1
42 msg "The local files are updated."
44 # --depth=1 should only be used when no merge is done
45 git clone "${_gitroot}" $_gitrepo || return 1
47 cd "${srcdir}/$_gitrepo"
48 git checkout $_githash || return 1
49 git merge origin/no-s3 || 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