Skip to content

Instantly share code, notes, and snippets.

@Ban3
Last active December 14, 2015 15:19
Show Gist options
  • Save Ban3/5107008 to your computer and use it in GitHub Desktop.
Save Ban3/5107008 to your computer and use it in GitHub Desktop.
Updated dfu-util-git PKGBUILD
# $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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment