All pastes #812795 Raw Edit

Untitled

public text v1 · immutable
·published 2007-12-12 00:46 UTC
rendered paste body
#!/bin/bash

## Variables
#this is the program you will be building
APP=pidgin-2.3.1
#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=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.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