2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
8 pkgdesc="dfu-util is a program that implements the Host (PC) side of the USB DFU protocol."
10 url="http://wiki.openmoko.org/wiki/Dfu-util"
15 replaces=('dfu-util-svn')
20 _gitroot=git://git.openezx.org/dfu-util.git
25 msg "Connecting to GIT server...."
27 if [ -d $_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
31 git clone $_gitroot $_gitname
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 rm -rf "$srcdir/$_gitname-build"
38 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
47 ln -s /usr/share/libtool/config/missing m4/missing
50 automake --add-missing || true
53 ./configure --prefix=/usr
55 make DESTDIR=$pkgdir install