updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / wordgen-git / PKGBUILD
blobb1e8f81f08867af735a35c13e076ac187703db23
1 # Contributor: Henri Häkkinen  <henuxd@gmail.com>
3 pkgname=wordgen-git
4 pkgver=20090523
5 pkgrel=1
6 pkgdesc="Wordlist generator."
7 arch=('i686' 'x86_64')
8 url="http://henux.nor.fi/projects/wordgen.php"
9 license=('GPL')
10 depends=('glibc')
11 makedepends=('git')
12 source=()
13 md5sums=()
15 _gitroot="git://github.com/henux/wordgen.git"
16 _gitname="wordgen"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git-pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./autogen.sh
37   ./configure --prefix=/usr
38   make || return 1
39   make DESTDIR="$pkgdir/" install
40