diff options
Diffstat (limited to 'development/gc/gc.SlackBuild')
-rw-r--r-- | development/gc/gc.SlackBuild | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/development/gc/gc.SlackBuild b/development/gc/gc.SlackBuild index c699e0b4df..843ad159ef 100644 --- a/development/gc/gc.SlackBuild +++ b/development/gc/gc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for gc -# Copyright 2006 Robby Workman (http://rlworkman.net) +# Copyright 2006-2007 Robby Workman (http://rlworkman.net) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,16 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# Modified by the SlackBuilds.org project - -set -e - PRGNAM=gc -VERSION=6.8 +VERSION=${VERSION:-7.0} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -42,12 +39,14 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf ${PRGNAM}${VERSION} -tar -xzvf $CWD/${PRGNAM}${VERSION}.tar.gz -cd ${PRGNAM}${VERSION} +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -55,6 +54,7 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --mandir=/usr/man \ --enable-static=no make @@ -64,11 +64,11 @@ mkdir -p $PKG/usr/man/man1 mv $PKG/usr/share/gc/gc.man $PKG/usr/man/man1/gc.1 gzip -9 $PKG/usr/man/man1/gc.1 -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/gc/* $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/usr/doc +mv $PKG/usr/share/gc $PKG/usr/doc/$PRGNAM-$VERSION +cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \; -rm -rf $PKG/usr/share +( cd $PKG/usr/share ; ln -s /usr/doc/$PRGNAM-$VERSION gc ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |