1 # Maintainer: Jeff 'codemac' Mickey <jeff@archlinux.org>
2 pkgname=darcs-fast-export-git
5 pkgdesc="Dump a darcs repository in a format understud by \"fast importers\" such as git-fast-import."
7 url="http://vmiklos.hu/project/darcs-fast-export"
10 makedepends=('git' 'asciidoc')
11 provides=('darcs-fast-export')
12 conflicts=('darcs-fast-export')
14 md5sums=() #generate with 'makepkg -g'
16 _gitroot="git://vmiklos.hu/darcs-fast-export"
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 make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build"
41 sed -i "s#/usr/bin/install#/bin/install#" Makefile
43 make DESTDIR="$pkgdir/" install