public
Last active

Updated dfu-util-git PKGBUILD

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
# Contributor: Jussi Timperi <jussi.timperi+arch@gmail.com>
 
pkgname=dfu-util-git
pkgver=20130307
pkgrel=1
pkgdesc="dfu-util is a program that implements the Host (PC) side of the USB DFU protocol."
arch=('i686' 'x86_64')
url="http://dfu-util.gnumonks.org/"
license=('GPL2')
depends=('libusb')
makedepends=('git')
provides=('dfu-util')
replaces=('dfu-util-svn')
source=()
md5sums=()
 
_gitroot=git://gitorious.org/dfu-util/dfu-util.git
_gitname=dfu-util-git
 
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
 
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
 
msg "GIT checkout done or server timeout"
msg "Starting build..."
 
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
 
#
# BUILD HERE
#
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac
./autogen.sh
./configure --prefix=/usr
make
make DESTDIR=$pkgdir install
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.