### this file is sourced not run
PKGVER=3.8.2
PKGBUILD=1

TARBALL=bison-$PKGVER.tar.xz
MD5SUM=c28f119f405a2304ff0a7ccdcc629713
BUNDLE=fatdog-base-11.3.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$BUNDLE

SLACKREQ=
SLACKDESC="bison: bison $PKGVER (Bison parser generator)  
bison:  
bison: Bison is a general-purpose parser generator that converts an annotated 
bison: context-free grammar into a deterministic LR or generalized LR (GLR) 
bison: parser employing LALR(1) parser tables. As an experimental feature, 
bison: Bison can also generate IELR(1) or canonical LR(1) parser tables. Once 
bison: you are proficient with Bison, you can use it to develop a wide range 
bison: of language parsers, from those used in simple desk calculators to 
bison: complex programming languages. Bison is upward compatible with Yacc.  
bison: 
bison: 
"


### 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() {
	cd /tmp/bison*
	CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
		./configure --prefix=/usr --libdir=/usr/lib64 &&
	 make $MAKEFLAGS && make install &&
	 pkg_build_slackdesc
}

