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