summaryrefslogtreecommitdiff
path: root/system/tpc/tpc.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-04 20:53:06 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-05 08:52:31 +0700
commit0a63a5d29bef60133c54eeee256a0842dbe5ea5a (patch)
treeeb5c2d8ac3daeef953bc747aa51b0c2595be3d09 /system/tpc/tpc.SlackBuild
parent92285c04f32e3b7095198b0df5e6da885958e4bb (diff)
downloadslackbuilds-0a63a5d29bef60133c54eeee256a0842dbe5ea5a.tar.gz
system/tpc: Moved to github.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/tpc/tpc.SlackBuild')
-rw-r--r--system/tpc/tpc.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/system/tpc/tpc.SlackBuild b/system/tpc/tpc.SlackBuild
index 560039512b..c36edff0ea 100644
--- a/system/tpc/tpc.SlackBuild
+++ b/system/tpc/tpc.SlackBuild
@@ -21,13 +21,13 @@
PRGNAM=tpc
VERSION=${VERSION:-0.44rc2}
-RC_VERSION=${RC_VERSION:-0.44-rc2}
+RC_VERSION=${RC_VERSION:-0.44-rc2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
@@ -38,8 +38,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -52,14 +52,14 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$RC_VERSION
-tar xvf $CWD/$PRGNAM-$RC_VERSION.tar.gz
-cd $PRGNAM-$RC_VERSION
+rm -rf $PRGNAM-$PRGNAM-$RC_VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$RC_VERSION.tar.gz
+cd $PRGNAM-$PRGNAM-$RC_VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -67,13 +67,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-cd $TMP/$PRGNAM-$RC_VERSION/src
CXXFLAGS="$SLKCFLAGS" make
mkdir -p $PKG/usr/bin
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $TMP/$PRGNAM-$RC_VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install