#!/bin/sh # All comments and suggestions to Alak Trakru # CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-j2re VERSION=1.4.2 ARCH=i386 BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG mkdir -p $PKG/usr/lib $PKG/etc/profile.d cat $CWD/j2re.csh > $PKG/etc/profile.d/j2re.csh cat $CWD/j2re.sh > $PKG/etc/profile.d/j2re.sh chmod 755 $PKG/etc/profile.d/j2re.* mv $CWD/j2re1.4.2 $PKG/usr/lib mkdir -p $PKG/install zcat $CWD/doinst.sh.jre.gz > $PKG/install/doinst.sh cat $CWD/slack-desc.j2re > $PKG/install/slack-desc cd $PKG chown -R root.root . makepkg -l y -c n $TMP/j2re-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/template-$VERSION rm -rf $PKG fi