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

TARBALL=bison-3.0.2.tar.xz
MD5SUM=146be9ff9fbd27497f0bf2286a5a2082
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/clfs-packages-3.0.0.tar
BUNDLE=clfs-packages-3.0.0.tar

SLACKREQ=
SLACKDESC='bison: bison 3.0.2 (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
}

