#!/bin/bash ## Variables #this is the program you will be building APP=synergy #this is the starting directory CWD=$(pwd) #this is the version of the program VER=1.3.1 #this is the build number with vl version your building it for BUILD=1vl58 #this is the cpu architecture ARCH=i586 #this is the dir we will build in TMP=/tmp ## work starts here #change dir to $TMP cd $TMP #extract the source tar xvf $CWD/$APP-$VER.tar.gz #change to source dir and run configure cd $APP-$VER && ./configure --prefix=/usr --sysconfdir=/etc #copy the description-pac file from the starting dir cp $CWD/description-pak . #compile the package and run checkinstall this is done in 2 lines make && /usr/sbin/checkinstall -L -A $ARCH --pkgrelease=$BUILD --strip=yes \ --stripso=yes --addso=yes --gzman=yes --fstrans=no ## finished lets move the pkg back to the original dir mv $APP-$VER-$ARCH-$BUILD.tlz $CWD .