system/tpc: Moved to github.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-07-04 20:53:06 +07:00
parent 92285c04f3
commit 0a63a5d29b
2 changed files with 11 additions and 13 deletions

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="tpc"
VERSION="0.44rc2"
HOMEPAGE="https://code.google.com/p/turionpowercontrol/"
DOWNLOAD="https://turionpowercontrol.googlecode.com/files/tpc-0.44-rc2.tar.gz"
MD5SUM="6027edc3fd0412efbdcbf03f13e960a3"
HOMEPAGE="https://github.com/turionpowercontrol/tpc"
DOWNLOAD="https://github.com/turionpowercontrol/tpc/archive/tpc-0.44-rc2/tpc-tpc-0.44-rc2.tar.gz"
MD5SUM="3454558d0b18d0e18c77c23c07a3d727"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""