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

TARBALL=texinfo-$PKGVER.tar.xz
MD5SUM=3715197e62e0e07f85860b3d7aab55ed
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ=
SLACKDESC="texinfo: texinfo $PKGVER (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() {
	CONFFLAGS="$CONFFLAGS --disable-static"
	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
}
