From 7ef2e207f281257ec4edd47c2137cdf93f1fd6d4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 1 Nov 2015 11:16:28 +0100 Subject: [PATCH] bison: register 'yacc' alternatives group. --- srcpkgs/bison/template | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/srcpkgs/bison/template b/srcpkgs/bison/template index 36d45b10a41..67105891fde 100644 --- a/srcpkgs/bison/template +++ b/srcpkgs/bison/template @@ -1,7 +1,7 @@ # Template build file for 'bison'. pkgname=bison version=3.0.4 -revision=1 +revision=2 build_style=gnu-configure hostmakedepends="help2man perl m4" depends="m4" @@ -11,3 +11,12 @@ 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 +}