#!/bin/sh # Build GNU screen for Slackware # VERSION=4.0.3 ARCH=x86_64 BUILD=1_slamd64_11.0 CWD=`pwd` TMP=/tmp PKG=$TMP/package-screen rm -rf $PKG mkdir -p $PKG cd $TMP rm -rf screen-$VERSION tar xjvf $CWD/screen-$VERSION.tar.bz2 cd screen-$VERSION chown -R root.root . CFLAGS=-O2 ./configure --prefix=/usr \ --with-sys-screenrc=/etc/screenrc \ --with-pty-mode=0620 \ --with-pty-group=5 \ --enable-telnet \ --disable-socket-dir \ --enable-locale \ --enable-colors256 \ --enable-rxvt_osc \ $ARCH-slackware-linux # Substitutions: perl -pi -e 's|.*#undef HAVE_BRAILLE.*|#define HAVE_BRAILLE 1|' 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 make install DESTDIR=$PKG # Prepare package: strip --strip-unneeded $PKG/usr/bin/screen chmod 755 $PKG/usr/bin/screen-$VERSION chown -R root.bin $PKG/usr/bin mkdir -p $PKG/etc/skel cat etc/etcscreenrc > $PKG/etc/screenrc cat etc/screenrc > $PKG/etc/skel/.screenrc rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/* gzip -9 $PKG/usr/man/man1/* mkdir -p $PKG/usr/doc/screen-$VERSION cp -a COPYING ChangeLog INSTALL NEWS README TODO \ doc/FAQ doc/README.DOTSCREEN \ $PKG/usr/doc/screen-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build package: cd $PKG makepkg -l y -c n $TMP/screen-$VERSION-$ARCH-$BUILD.tgz