/[gnokii]/gnokii/packaging/Slackware/SlackBuild.in
ViewVC logotype

Diff of /gnokii/packaging/Slackware/SlackBuild.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by pkot, Sun May 2 23:52:40 2004 UTC revision 1.8 by pkot, Thu May 12 21:04:06 2005 UTC
# Line 4  Line 4 
4    
5  # Set initial variables:  # Set initial variables:
6  CWD=`pwd`  CWD=`pwd`
7  if [ "$TMP" = "" ]; then  if [ "${TMP}" = "" ]; then
8    TMP=/tmp    TMP=/tmp
9  fi  fi
10  PKG=$TMP/package-gnokii  PKG=${TMP}/package-gnokii
11    
12    NAME=gnokii
13  VERSION=@VERSION@  VERSION=@VERSION@
14  ARCH=${ARCH:-i486}  ARCH=${ARCH:-i486}
15  BUILD=1  BUILD=1
16    
17  if [ ! -d $TMP ]; then  if [ ! -d ${TMP} ]; then
18    mkdir -p $TMP # location to build the source    mkdir -p ${TMP} # location to build the source
19  fi  fi
20  rm -rf $PKG  rm -rf ${PKG}
21  mkdir -p $PKG  mkdir -p ${PKG}
22    
23  cd $TMP  cd ${TMP}
24  rm -rf gnokii-$VERSION  rm -rf ${NAME}-${VERSION}
25  tar xzvf $CWD/gnokii-$VERSION.tar.gz  tar xzvf ${CWD}/${NAME}-${VERSION}.tar.gz
26  cd gnokii-$VERSION  chown -R root.root ${NAME}-${VERSION}
27  chown -R root.root .  cd ${NAME}-${VERSION}
28  ./configure \  ./configure \
29    --prefix=/usr \    --prefix=/usr \
30    --sysconfdir=/etc \    --sysconfdir=/etc \
# Line 31  chown -R root.root . Line 32  chown -R root.root .
32    --program-suffix="" \    --program-suffix="" \
33    --enable-security \    --enable-security \
34    --without-x \    --without-x \
35    $ARCH-slackware-linux    ${ARCH}-slackware-linux
36  make  make
37  # File permissions will be set by doinst.sh  # File permissions will be set by doinst.sh
38  make install-strip DESTDIR=$PKG  make install-strip DESTDIR=${PKG}
39  make install-docs DESTDIR=$PKG  make install-docs DESTDIR=${PKG}
40    
41  gzip -9 $PKG/usr/man/man?/*  gzip -9 ${PKG}/usr/man/man?/*
42  # Default config  # Default config
43  mkdir -r $PKG/etc  mkdir -p ${PKG}/etc
44  cp Docs/sample/gnokiirc $PKG/etc/gnokiirc.new  cp Docs/sample/gnokiirc ${PKG}/etc/gnokiirc.new
45  mkdir -p $PKG/install  mkdir -p ${PKG}/install
46  cat $CWD/slack-desc > $PKG/install/slack-desc  cat ${CWD}/slack-desc > ${PKG}/install/slack-desc
47  cat $CDW/doinst.sh > $PKG/install/doinst.sh  cat ${CWD}/doinst.sh > ${PKG}/install/doinst.sh
48    
49  # Build the package:  # Build the package:
50  cd $PKG  cd ${PKG}
51  makepkg -l y -c n $TMP/gnokii-$VERSION-$ARCH-$BUILD.tgz  makepkg -l y -c n ${CWD}/${NAME}-${VERSION}-${ARCH}-${BUILD}.tgz
52    
53  # Clean up the extra stuff:  # Clean up the extra stuff:
54  if [ "$1" = "--cleanup" ]; then  if [ "$1" = "--cleanup" ]; then
55    rm -rf $TMP/gnokii-$VERSION    rm -rf ${TMP}/${NAME}-${VERSION}
56    rm -rf $PKG    rm -rf ${PKG}
57  fi  fi

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26