#!/bin/bash ##NEED:nodejs ##NEED:git #NEED:apache_ant #NEED:jdk #######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//'` #Architecture that the created binaries run on. #Use noarch for scripts. ARCH=`uname -m` #from this point on, exit on errors: set -e ########Build and create the pacakge. #Uncomment the stuff that you dont want or need SRC_DIR=kopano-webapp VER=3.5.7 pushd $SRC_DIR PATH=$PATH:/usr/lib/ant/bin PATH=$PATH:/usr/lib/java/bin/ ant deploy ant deploy-plugins #npm install popd mkdir -p /tmp/pkg/var/www/htdocs/syn3 mv $SRC_DIR/deploy /tmp/pkg/var/www/htdocs/syn3/kopano-webapp || exit 1 #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1