### this file is sourced not run
PKGVER=11.3 # BLFS version
PKGBUILD=1
PKGARCH=x86_64

# source: post-BLFS 8.2 2018-07-08. Identical to the one from BLFS 11.3
# package called autoconf213 and not autoconf-2.13 to avoid conflicts with
# the current version of autoconf.
TARBALL=autoconf-2.13.tar.gz
MD5SUM=9de56d4a161a723228220b0f425dc711
SRC_URL=https://ftp.gnu.org/gnu/autoconf/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="autoconf213: autoconf 2.13 $PKGVER (automatically configure scripts)  
autoconf213:  
autoconf213: The Autoconf package contains programs for producing shell scripts 
autoconf213: that can automatically configure source code.  
autoconf213: 
autoconf213: This is an older version of autoconf but still commonly used
autoconf213: and required by many build systems (e.g. seamonkey, palemoon web
autoconf213: browser, etc). It can co-exist with newer versions of autoconf.
autoconf213: 
autoconf213: Use BLFS patches.
autoconf213: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/autoconf* &&
	patch -Np1 -i ../pkg/autoconf-2.13-consolidated_fixes-1.patch
}

### default pkg_package
### 
pkg_build() {
	cd /tmp/autoconf* &&
	mv -v autoconf.texi autoconf213.texi                      &&
	rm -v autoconf.info                                       &&
	./configure --prefix=/usr --program-suffix=2.13           &&
	make $MAKEFLAGS &&
	
	make install                                      &&
	install -v -m644 autoconf213.info /usr/share/info &&
	install-info --info-dir=/usr/share/info autoconf213.info &&

	pkg_build_slackdesc
}
