diff options
author | Korgman <korgie@gmail.com> | 2017-03-09 00:57:23 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-03-11 07:03:51 +0700 |
commit | fe4a4836addd1320a5a913ba910ea003e0a50d70 (patch) | |
tree | 13764890d03a6ebdf26bcc3fcaa218d4576209c3 /system | |
parent | 325b4722cdd2968ff56f3045b8e3c10486fd8a77 (diff) |
system/cpulimit: Updated for version 0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/cpulimit/cpulimit.SlackBuild | 15 | ||||
-rw-r--r-- | system/cpulimit/cpulimit.info | 6 |
2 files changed, 11 insertions, 10 deletions
diff --git a/system/cpulimit/cpulimit.SlackBuild b/system/cpulimit/cpulimit.SlackBuild index d82f463135c3..11e58b12ed14 100644 --- a/system/cpulimit/cpulimit.SlackBuild +++ b/system/cpulimit/cpulimit.SlackBuild @@ -3,15 +3,16 @@ # Slackware build script for cpulimit # Written by Andrey Maraev <andrew.maraev60@yandex.ru> +# update to v0.2 by clavisound PRGNAM=cpulimit -VERSION=${VERSION:-0.1} +VERSION=${VERSION:-0.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -22,8 +23,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" @@ -42,14 +43,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar cvf $CWD/v$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; make @@ -60,7 +61,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/system/cpulimit/cpulimit.info b/system/cpulimit/cpulimit.info index 75273f649fb5..f60351182842 100644 --- a/system/cpulimit/cpulimit.info +++ b/system/cpulimit/cpulimit.info @@ -1,8 +1,8 @@ PRGNAM="cpulimit" -VERSION="0.1" +VERSION="0.2" HOMEPAGE="https://github.com/opsengine/cpulimit" -DOWNLOAD="https://github.com/opsengine/cpulimit/archive/v0.1.tar.gz" -MD5SUM="022a32e793bde7b0776674f8b3e977b2" +DOWNLOAD="https://github.com/opsengine/cpulimit/archive/v0.2/cpulimit-0.2.tar.gz" +MD5SUM="ac86cd54173251223fb89b14a73ae37c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |