system/cpulimit: Updated for version 0.2.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Korgman 2017-03-09 00:57:23 +07:00 committed by Willy Sudiarto Raharjo
parent 6af15d7bfa
commit 6269dc9c04
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 11 additions and 10 deletions

View file

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

View file

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