IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=2.1pre15 PROGNAME="links $VERSION" DESC="\ links (WWW browser for the console) \n\ \n\ Links is a console mode WWW browser, supporting colors, correct table \n\ rendering, background downloading, frames, Javascript, and a menu \n\ driven configuration interface. The default is text output, but \n\ graphical output (using -g) is also supported using the Linux \n\ framebuffer console or SVGAlib. \n\ \n\ links was written by Mikulas Patocka." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/links PKGNAME=links-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/links-$VERSION.tar.bz2 cd links-$VERSION/ chown -R root.root . # We are configuring this without X as there are MANY browser choices for # X already. If you need a browser for X, either use something else or # recompile. :-) CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-javascript \ --without-x \ --without-gpm \ s390-slackware-linux # gpm still segfaults, and the package won't build without gpm and enable graphics specified # --enable-graphics make } install() { make install DESTDIR=/package-links mkdir -p /package-links/usr/doc/links-$VERSION cp -a AUTHORS BUGS COPYING INSTALL NEWS README SITES TODO doc/links_cal \ /package-links/usr/doc/links-$VERSION cp -a mailcap.pl /package-links/usr/doc/links-$VERSION ( cd /package-links/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-links/usr/bin/ chmod 644 $PKG/package-links/usr/doc/links-$VERSION/links_cal/ chmod 755 $PKG/package-links/usr/doc/links-$VERSION/mailcap.pl } special() { cd $PKG mv package-links/* ./ rmdir package-links cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-links/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }