# Template build file for 'bison'.
pkgname=bison
version=3.0.4
revision=2
build_style=gnu-configure
hostmakedepends="help2man perl m4"
depends="m4"
short_desc="GNU yacc(1) replacement"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnu.org/software/bison/bison.html"
license="GPL-3"
distfiles="http://ftp.gnu.org/pub/gnu/bison/$pkgname-$version.tar.xz"
checksum=a72428c7917bdf9fa93cb8181c971b6e22834125848cf1d03ce10b1bb0716fe1

alternatives="
 yacc:yacc:/usr/bin/bison-yacc
 yacc:yacc.1:/usr/share/man/man1/bison-yacc.1"

post_install() {
	mv ${DESTDIR}/usr/bin/{yacc,bison-yacc}
	mv ${DESTDIR}/usr/share/man/man1/{yacc,bison-yacc}.1
}
