### this file is sourced not run
PKGVER=0.19.1
PKGBUILD=1
PKGARCH=i686

TARBALL=gettext-$PKGVER.tar.gz
MD5SUM=8949a57e82abe88274a93174ade515e4
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/clfs-packages-3.0.0.tar
BUNDLE=clfs-packages-3.0.0.tar

SLACKREQ=
SLACKDESC="gettext32: gettext32 $PKGVER (Localisation helper)  
gettext32:  
gettext32: The Gettext package contains utilities for internationalization and 
gettext32: localization. These allow programs to be compiled with NLS (Native 
gettext32: Language Support), enabling them to output messages in the user'\''s 
gettext32: native language.  
gettext32: 
gettext32: This package contains 32-bit libraries for gettext.
gettext32: 
gettext32: 
gettext32:
"


### 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
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --docdir=/usr/share/doc/gettext-$PKGVER"
	pkg_build_autoconf && pkg_build_slackdesc
}


