#!/bin/bash #Gebruik deze file als voorbeeld. Plaats de source tar.gz file in de zelfde directory als deze slackbuild #Met de NEED en DEP opties is het mogelijk om build dependencies aan te geven. #Voor de meeste packages hoeft er verder niks aan de variabellen veranderd te worden. ##################################### Build dependency info: #DEP:libsdl #DEP:gtk+ #DEP:svn #######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` ########Build and create the pacakge. #Uncomment the stuff that you dont want or need #Unpack source #(uncomment if not needed) #syn3_unpack $SRC_ARC || exit 1 svn co svn://svn.icculus.org/smpeg/trunk smpeg || exit 1 SRC_DIR=smpeg VER=`svnversion smpeg` || exit 1 pushd $SRC_DIR || exit 1 ./autogen.sh || exit 1 popd #build and install sourcefiles #./configure optiones: export CONFIGURE_OPTS="" #options for all make commands: export MAKE_OPTS="" #skip testing: #export NOTEST=1 #extra optiones for the make install command, use with INSTALL_BASE for example: export INSTALL_OPTS="" syn3_build_automake $SRC_DIR /tmp/pkg || exit 1 #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