NAME=automake
VERSION=1.10
SOURCE=$MIRROR_GNU/automake/automake-$VERSION.tar.bz2
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-O2 -pipe"}

build() {
	_explode 0
	cd automake-$VERSION
	_configure
	make
	make install DESTDIR=$PKG
	# Change hard links to symlinks:
	SHORTNAME=$(echo $VERSION | cut -f1,2 -d .)
	( cd $PKG$BINDIR
		rm -f aclocal
		ln -sf aclocal-$SHORTNAME aclocal
		rm -rf automake
		ln -sf automake-$SHORTNAME automake
	)
	# Create local aclocal dir:
	mkdir -p $PKG$DATADIR/aclocal
	_doc 0 automake-$VERSION  AUTHORS COPYING NEWS README THANKS TODO
	_chfix
	_chgrp_bin
}
