diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-04 20:53:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-05 08:52:31 +0700 |
commit | 0a63a5d29bef60133c54eeee256a0842dbe5ea5a (patch) | |
tree | eb5c2d8ac3daeef953bc747aa51b0c2595be3d09 | |
parent | 92285c04f32e3b7095198b0df5e6da885958e4bb (diff) | |
download | slackbuilds-0a63a5d29bef60133c54eeee256a0842dbe5ea5a.tar.gz |
system/tpc: Moved to github.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | system/tpc/tpc.SlackBuild | 18 | ||||
-rw-r--r-- | system/tpc/tpc.info | 6 |
2 files changed, 11 insertions, 13 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 diff --git a/system/tpc/tpc.info b/system/tpc/tpc.info index f445bafe55..3b52cc8deb 100644 --- a/system/tpc/tpc.info +++ b/system/tpc/tpc.info @@ -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="" |