#!/bin/bash #DEP:apache_ant #######Essential package info. #Change these if autodetection fails. #Name of the Syn-3 package that we are going to create NAME=`basename $0|sed 's/.SlackBuild//'` #Version of the sourcefiles VER=2_9_0 #Architecture that the created binaries run on. #Use noarch for scripts. ARCH=noarch JAVA_NAME=`echo $SRC_DIR | sed 's/-.*//'` ########Build and create the pacakge. #Uncomment the stuff that you dont want or need #Unpack source #(uncomment if not needed) tar -xzf xerces-2_9_0.tar.gz || exit 1 #build and install it cd xerces-2_9_0 || exit 1 tar -xzf ../Xerces-J-tools.2.9.0.tar.gz || exit 1 sh build.sh jars || exit 1 mkdir -p /tmp/pkg/usr/lib/java/lib mv build/*.jar /tmp/pkg/usr/lib/java/lib || exit 1 cd .. #strip bins and other stuff syn3_strip /tmp/pkg || exit 1 #move development stuff and create seperate development package syn3_move_dev /tmp/pkg /tmp/pkgdev || exit 1 syn3_makepkg /tmp/pkgdev $NAME""_dev $VER $ARCH || exit 1 #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1