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

# source: BLFS 8.2
TARBALL=intltool-$PKGVER.tar.gz
MD5SUM=12e517cac2b57a0121cda351570f1e63
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ='perl perl-xml-parser'
SLACKDESC="intltool: intltool $PKGVER (i18n tool)  
intltool:  
intltool: The Intltool is an internationalization tool used for extracting 
intltool: translatable strings from source files, collecting the extracted 
intltool: strings with messages from traditional source files (<source 
intltool: directory>/<package>/po) and merging the translations into .xml, 
intltool: .desktop and .oaf files.  
intltool: 
intltool: 
intltool: 
intltool:
"

### override download for LFS sources
# $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() {
	cd /tmp/intltool* &&
	
	# LFS 8.2 - remove warning from newer perl (5.22 onwards)
	sed -i 's:\\\${:\\\$\\{:' intltool-update.in &&
	
	pkg_build_autoconf &&

	install -v -m644 -D doc/I18N-HOWTO \
    /usr/share/doc/intltool-$PKGVER/I18N-HOWTO &&
	pkg_build_slackdesc
}


