diff options
author | Ferenc Deak <ferenc.deak@gmail.com> | 2010-05-11 19:44:22 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 19:44:22 +0200 |
commit | a82a3940392318329237dbfbb764ba436df692b5 (patch) | |
tree | b74413b91a0bd92e24ad2bee41f05b44e505a5df /development/tkcvs/tkcvs.SlackBuild | |
parent | 8c32a09828fb179ac38e16ee4a98c8a3b775a30c (diff) |
development/tkcvs: Updated for version 8.1
Diffstat (limited to 'development/tkcvs/tkcvs.SlackBuild')
-rw-r--r-- | development/tkcvs/tkcvs.SlackBuild | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/development/tkcvs/tkcvs.SlackBuild b/development/tkcvs/tkcvs.SlackBuild index 01cec5673105..d4d46270d973 100644 --- a/development/tkcvs/tkcvs.SlackBuild +++ b/development/tkcvs/tkcvs.SlackBuild @@ -1,41 +1,63 @@ #!/bin/sh # Slackware build script for tkcvs -# Written by Ferenc Deak <ferenc.deak@gmail.com> + +# Copyright 2007-2008 Ferenc Deak <ferenc.deak@gmail.com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Slightly modified by the SlackBuilds project -set -e PRGNAM=tkcvs -VERSION=8.0.3 +VERSION=8.1 ARCH=${ARCH:-noarch} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +SRCVERSION=$(echo $VERSION | tr . _) + if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -V=${VERSION//./_} -rm -rf ${PRGNAM}_$V -tar xzf $CWD/${PRGNAM}_$V.tar.gz -cd ${PRGNAM}_$V +rm -rf ${PRGNAM}_$SRCVERSION +tar xzf $CWD/${PRGNAM}_$SRCVERSION.tar.gz +cd ${PRGNAM}_$SRCVERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . ./doinstall.tcl -nox $PKG/usr ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) @@ -45,10 +67,9 @@ chmod -R u+w,go+r-w,a-s . ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a FAQ COPYING CHANGELOG \ - $PKG/usr/doc/$PRGNAM-$VERSION -cp tkdiff/Changelog $PKG/usr/doc/$PRGNAM-$VERSION/tkdiff-Changelog -cp tkdiff/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/tkdiff-COPYING +cp -a FAQ COPYING CHANGELOG $PKG/usr/doc/$PRGNAM-$VERSION +cp tkdiff/Changelog $PKG/usr/doc/$PRGNAM-$VERSION/Changelog.tkdiff +cp tkdiff/COPYING $PKG/usr/doc/$PRGNAM-$VERSION/COPYING.tkdiff cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/applications @@ -60,5 +81,3 @@ cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz - - |