VERSION=3.9.9 BUILD=1 ARCH=i386 TAG=OPT PKGNAME=screen MAINTAINER="tg " IGNOREPATH=/tmp:/proc:/dev:/root:/var:/home STRIPLIB=y STRIPBIN=y PROGNAME=screen DESC="\ GNU screen-$VERSION\n\ \n\ Screen is a full-screen window manager that multiplexes a physical\n\ terminal between several processes (typically interactive shells).\n\ Each virtual terminal provides the functions of a DEC VT100 terminal\n\ and several control functions from the ISO 6492 (ECMA 48, ANSI X3.64)\n\ and ISO 2022 standards (e.g. insert/delete line and support for\n\ multiple character sets). There is a scrollback history buffer for\n\ each virtual terminal and a copy-and-paste mechanism that allows\n\ moving text regions between windows." compile() { tar xvzf $CWD/screen-$VERSION.tar.gz cd screen-$VERSION ./configure --prefix=/usr \ --with-sys-screenrc=/etc/screenrc \ --disable-socket-dir \ $ARCH-slackware-linux # Substitutions: perl -pi -e 's|.*#.*PTYMODE.*|#define PTYMODE 0620|' config.h perl -pi -e 's|.*#.*PTYGROUP.*|#define PTYGROUP 5|' config.h perl -pi -e 's|.*#undef HAVE_BRAILLE.*|#define HAVE_BRAILLE 1|' config.h perl -pi -e 's|.*#undef BUILTIN_TELNET.*|#define BUILTIN_TELNET 1|' config.h perl -pi -e 's|%{_prefix}/etc/screenrc|/etc/screenrc|' config.h perl -pi -e 's|/usr/local/etc/screenrc|/etc/screenrc|' etc/etcscreenrc doc/* perl -pi -e 's|/local/etc/screenrc|/etc/screenrc|' doc/* # Build screen: make } install() { cp screen /usr/bin/screen-$VERSION ( cd /usr/bin ; rm -rf screen ; ln -sf screen-$VERSION screen ) cp doc/screen.info* /usr/info cp doc/screen.1 /usr/man/man1 mkdir -p /usr/doc/screen-$VERSION cp COPYING ChangeLog INSTALL NEWS NEWS.3.5 NEWS.3.6 NEWS.3.7 README TODO \ doc/FAQ doc/README.DOTSCREEN /usr/doc/screen-$VERSION } special() { mkdir -p $PKG/etc/skel cat $CWD/etc/screenrc > $PKG/etc/screenrc cat $CWD/etc/skel/screenrc > $PKG/etc/skel/.screenrc }