diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-28 00:46:03 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-12-31 08:22:10 +0700 |
commit | fe5d52c2211ec19a87ce1b6e2a3626d2d0b4fa99 (patch) | |
tree | bb09e607ea54c8d2b8ecffbd2e04b72229ec91df /system/laptop-mode-tools/laptop-mode-tools.SlackBuild | |
parent | a6532c2139f8dda8e255af595274eb5a870ae330 (diff) | |
download | slackbuilds-fe5d52c2211ec19a87ce1b6e2a3626d2d0b4fa99.tar.gz |
system/laptop-mode-tools: Updated for version 1.70.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/laptop-mode-tools/laptop-mode-tools.SlackBuild')
-rw-r--r-- | system/laptop-mode-tools/laptop-mode-tools.SlackBuild | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild index 41cff2d183..fca19c7bfc 100644 --- a/system/laptop-mode-tools/laptop-mode-tools.SlackBuild +++ b/system/laptop-mode-tools/laptop-mode-tools.SlackBuild @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=laptop-mode-tools -VERSION=${VERSION:-1.61} +VERSION=${VERSION:-1.70} 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 @@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then +if [ "$ARCH" = "i586" ]; then LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then LIBDIRSUFFIX="" @@ -56,14 +56,14 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz -cd ${PRGNAM}_$VERSION +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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; # Put udev rules in /lib/udev/rules.d/ instead of /etc/udev/rules.d/ sed -i 's|etc/udev|lib/udev|' install.sh @@ -80,9 +80,7 @@ mv $PKG/etc/rc.d/laptop-mode $PKG/etc/rc.d/rc.laptop-mode.new find $PKG/etc/laptop-mode -name '*.conf' -exec mv {} {}.new \; mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README COPYING \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md COPYING $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |