updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dfu-util-git / PKGBUILD
blob6f72149619f7b750ad1c3339dd970fd713b2236c
1 # $Id$
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
5 pkgname=dfu-util-git
6 pkgver=20120110
7 pkgrel=1
8 pkgdesc="dfu-util is a program that implements the Host (PC) side of the USB DFU protocol."
9 arch=('i686' 'x86_64')
10 url="http://wiki.openmoko.org/wiki/Dfu-util"
11 license=('GPL')
12 depends=('libusb')
13 makedepends=('git')
14 provides=('dfu-util')
15 replaces=('dfu-util-svn')
17 source=()
18 md5sums=()
20 _gitroot=git://git.openezx.org/dfu-util.git
21 _gitname=dfu-util-git
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
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"
41   #
42   # BUILD HERE
43   #
45   touch NEWS AUTHORS
46   mkdir -p m4
47   ln -s /usr/share/libtool/config/missing m4/missing
49   libtoolize -i
50   automake --add-missing || true
51   autoreconf
53   ./configure --prefix=/usr
54   make
55   make DESTDIR=$pkgdir install