updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / autoconf-git / PKGBUILD
blobd2c4dc855b7ab19c356908bf18fa423300ad8fbe
1 # Maintainer: Dave Reisner <d@falconindy.com>
3 pkgname=autoconf-git
4 pkgver=20110320
5 pkgrel=1
6 pkgdesc="A GNU tool for automatically configuring source code"
7 arch=('any')
8 license=('GPL2' 'GPL3' 'custom')
9 url="http://www.gnu.org/software/autoconf"
10 groups=('base-devel')
11 depends=('awk' 'm4' 'diffutils' 'bash')
12 provides=('autoconf')
13 conflicts=('autoconf')
14 install=autoconf.install
16 _gitroot="git://git.sv.gnu.org/autoconf"
17 _gitname="autoconf"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [[ -d $_gitname ]] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   # FFFFFFFFFUUUUUUUUUUUUUUUUUU
38   cp /usr/share/automake-1.11/INSTALL .
40   aclocal -I m4 --install
41   autoconf
42   automake --add-missing
43   ./configure --prefix=/usr
44   make
47 package() {
48   cd "$srcdir/$_gitname-build"
50   make DESTDIR="$pkgdir/" install
51   rm "$pkgdir/usr/share/info/standards.info"
52