name=bison
version=2.4.1
-release=1
+release=2
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build() {
- cd $name-$version
- ./configure --build=$CHOST \
- --host=$CTARGET \
- --prefix=/usr\
- --mandir=/usr/man \
- --disable-nls
- make
- make DESTDIR=$PKG install
- rm -rf $PKG/usr/share/info
- rm $PKG/usr/share/bison/README
+ cd $name-$version
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr\
+ --disable-nls
+
+ sed '/^SUBDIRS =/ s/doc//' -i Makefile.in
+
+ make
+ make DESTDIR=$PKG install
+
+ install -d $PKG/usr/man/man1
+ install -m 0644 doc/*.1 $PKG/usr/man/man1
+
+ rm -rf $PKG/usr/share/info
+ rm $PKG/usr/share/bison/README
}