#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-jove VERSION=4.16.0.70 ARCH=alpha BUILD=2 rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf jove$VERSION tar xzf $CWD/jove$VERSION.tgz cd jove$VERSION chown -R root.root . zcat $CWD/jove.makefile.diff.gz | patch -p1 --verbose || exit make || exit mkdir -p $PKG/usr/lib/jove install -c -m 755 recover $PKG/usr/lib/jove/recover mkdir -p $PKG/usr/bin install -c -m 755 jjove $PKG/usr/bin/jove install -c -m 755 teachjove $PKG/usr/bin/teachjove ( cd $PKG/usr/bin ln -sf /usr/lib/jove/recover jove-recover ) chown -R root.bin $PKG/usr/bin install -c -m 644 doc/teach-jove $PKG/usr/lib/jove/teach-jove install -c -m 644 doc/cmds.doc $PKG/usr/lib/jove/cmds.doc install -c -m 644 doc/jove.rc.sun doc/keychart.sun doc/jove.rc.sun-cmd doc/keychart.sun-cmd doc/jove.rc.vt100 doc/keychart.vt100 doc/jove.rc.wyse doc/keychart.wyse doc/jove.rc.xterm doc/keychart.xterm doc/jove.rc.z29 doc/keychart.z29 doc/jove.rc.3022 doc/keychart.3022 doc/keychart. doc/XTermresource $PKG/usr/lib/jove install -c -m 644 doc/jove.rc $PKG/usr/lib/jove/jove.rc mkdir -p $PKG/usr/man/man1 install -c -m 644 doc/jove.1 $PKG/usr/man/man1/jove.1 install -c -m 644 doc/teachjove.1 $PKG/usr/man/man1/teachjove.1 gzip -9 $PKG/usr/man/man1/* mkdir -p $PKG/usr/doc/jove$VERSION cp -a README $PKG/usr/doc/jove$VERSION chmod 644 $PKG/usr/doc/jove$VERSION/* # This is only used on systems without pttys. # cat portsrv > $PKG/usr/lib/jove/portsrv # chmod 755 $PKG/usr/lib/jove/portsrv ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/jove-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/jove.build.log