### this file is sourced not run
PKGVER=5.2
PKGBUILD=1
PKGARCH=x86_64

TARBALL=texinfo-5.2.tar.xz
MD5SUM=cb489df8a7ee9d10a236197aefdb32c5
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/clfs-packages-3.0.0.tar
BUNDLE=clfs-packages-3.0.0.tar

SLACKREQ=
SLACKDESC='texinfo: texinfo 5.2 (Info-pages utilities)  
texinfo:  
texinfo: The Texinfo package contains programs for reading, writing, and 
texinfo: converting info pages.  
texinfo: 
texinfo: 
texinfo: 
texinfo: 
texinfo: 
texinfo: 
texinfo:
'


### override download for LFS sources bundle
# $1-src-dir $2-tarball 
pkg_download() {
	echo downloading $BUNDLE for $TARBALL
	wget -P $1 $SRC_URL
	tar -xf $1/$BUNDLE --strip-components=1 -C $1 
	rm $1/$BUNDLE
}

### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	pkg_build_autoconf && 
	make TEXMF=/usr/share/texmf install-tex &&
	pkg_build_slackdesc	&&
	
	cat > /usr/sbin/update-infodir << "EOF"
#!/bin/sh
cd /usr/share/info
rm -v dir
for f in *
do install-info $f dir 2>/dev/null
done
EOF
	chmod +x /usr/sbin/update-infodir
}
