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

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

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

revision 1.1 by pkot, Sun May 2 23:52:40 2004 UTC revision 1.2 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-xgnokii  PKG=${TMP}/package-xgnokii
11    
12    NAME=gnokii
13  VERSION=@VERSION@  VERSION=@VERSION@
14  ARCH=${ARCH:-i486}  ARCH=${ARCH:-i486}
15  BUILD=1  BUILD=1
# Line 20  rm -rf $PKG Line 21  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 32  chown -R root.root . Line 33  chown -R root.root .
33    --enable-security \    --enable-security \
34    --with-x \    --with-x \
35    --with-xgnokiidir=/usr/X11R6 \    --with-xgnokiidir=/usr/X11R6 \
36    $ARCH-slackware-linux    ${ARCH}-slackware-linux
37  make  make
38  # File permissions will be set by doinst.sh  # File permissions will be set by doinst.sh
39  make install-strip DESTDIR=$PKG  make install-strip DESTDIR=${PKG}
40  make install-docs DESTDIR=$PKG  make install-docs DESTDIR=${PKG}
41    
42  gzip -9 $PKG/usr/man/man?/*  gzip -9 ${PKG}/usr/man/man?/*
43  # Default config  # Default config
44  mkdir -r $PKG/etc  mkdir -P ${PKG}/etc
45  cp Docs/sample/gnokiirc $PKG/etc/gnokiirc.new  cp Docs/sample/gnokiirc ${PKG}/etc/gnokiirc.new
46  mkdir -p $PKG/install  mkdir -p ${PKG}/install
47  cat $CWD/slack-desc-xgnokii > $PKG/install/slack-desc  cat ${CWD}/slack-desc-xgnokii > ${PKG}/install/slack-desc
48  cat $CDW/doinst-xgnokii.sh > $PKG/install/doinst.sh  cat ${CWD}/doinst-xgnokii.sh > ${PKG}/install/doinst.sh
49    
50  # Build the package:  # Build the package:
51  cd $PKG  cd ${PKG}
52  makepkg -l y -c n $TMP/xgnokii-$VERSION-$ARCH-$BUILD.tgz  makepkg -l y -c n ${TMP}/x${NAME}-${VERSION}-${ARCH}-${BUILD}.tgz
53    
54  # Clean up the extra stuff:  # Clean up the extra stuff:
55  if [ "$1" = "--cleanup" ]; then  if [ "$1" = "--cleanup" ]; then
56    rm -rf $TMP/gnokii-$VERSION    rm -rf ${TMP}/${NAME}-${VERSION}
57    rm -rf $PKG    rm -rf ${PKG}
58  fi  fi

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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