#!/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: #Strict build-dependencies. #Only use when really neccesary, this will rebuild our package if the dependencie has changed: ##DEP:linux ##DEP:linux_src #Loose build-dependencies. #Use this to specify the packages that are required to build our package: ##NEED:libcairo ##NEED:glib ##NEED:gtk+ ##NEED:glib2 ##NEED:gtk+2 ##NEED:xorg_lib ##NEED:xorg_proto #######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//'` #Archive of the sourcefiles to unpack SRC_ARC=`ls *.tar.*` #Version of the sourcefiles VER=`echo $SRC_ARC| sed 's/.*-//g' | sed 's/\.tar\..*$//g'` #Directory of the sourcefiles to build (after optional unpacking) SRC_DIR=`echo $SRC_ARC| sed 's/\.tar\..*$//g'` #Architecture that the created binaries run on. #Use noarch for scripts. ARCH=`arch` ########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 pushd $SRC_DIR || exit 1 tar -xf lsof_*_src.tar || exit 1 pushd lsof_*_src || exit 1 ./Configure -n linux || exit 1 make || exit 1 #install mkdir -p /tmp/pkg/usr/bin cp -a lsof /tmp/pkg/usr/bin mkdir -p /tmp/pkg/usr/man/man8 || exit 1 cp -a lsof.8 /tmp/pkg/usr/man/man8 || exit 1 popd popd #strip bins and other stuff syn3_strip /tmp/pkg || exit 1 #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1