#!/bin/bash #Univsersele java package maker. #Je hoeft theoretisch niks te veranderen aan dit script. :) #Name of the Syn-3 package that we are going to create NAME=`basename $0|sed 's/.SlackBuild//'` #Archive of the sourcefiles to unpack SRC_ARC=`ls *.zip` #Version of the sourcefiles VER=`echo $SRC_ARC| sed 's/.*-//g' | sed 's/\.zip//g'` #Use noarch for scripts. ARCH=noarch mkdir unzip cd unzip unzip ../*.zip || exit 1 cd * || exit 1 #move to final destination mkdir -p /tmp/pkg/usr/lib/java/lib mv *.jar /tmp/pkg/usr/lib/java/lib || exit 1 cd ../.. #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1