All pastes #812254 Raw Edit

Mine

public text v1 · immutable
·published 2007-12-11 17:01 UTC
rendered paste body
#!/bin/bash

## Variables
#this is the program you will be building
APP=thunar-volman
#this is the starting directory
CWD=$(pwd)
#this is the version of the program
VER=0.2.0
#this is the build number with vl version your building it for
BUILD=1vl59
#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.bz2
#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 && 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