updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / elfdump-git / PKGBUILD
blobe17fca23a982ac99e27b039524aabac5121d63fb
1 # Contributor: Henri Häkkinen  <henux@users.sourceforge.net>
2 pkgname=elfdump-git
3 pkgver=20090121
4 pkgrel=1
5 pkgdesc="ELF section dumper."
6 arch=('i686' 'x86_64')
7 url="http://github.com/henux/elfdump"
8 license=('GPL')
9 depends=('glibc')
10 makedepends=('git')
11 source=()
12 md5sums=()
14 _gitroot="git://github.com/henux/elfdump.git"
15 _gitname="elfdump"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git-pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_gitname-build"
32   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   ./autogen.sh
36   ./configure --prefix=/usr
37   make || return 1
38   make DESTDIR="$pkgdir/" install
39