diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2018-01-12 19:43:45 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-13 07:13:08 +0700 |
commit | 0f0e8fd4a6182928a08e745a40859ddc573997e1 (patch) | |
tree | 7f9d4de3dfaf675e5dc08a6dbc88195225b0beef /system/i2c-tools/i2c-tools.SlackBuild | |
parent | 03560f87d1971072bbe8cb6a6edd34997724de6d (diff) | |
download | slackbuilds-0f0e8fd4a6182928a08e745a40859ddc573997e1.tar.gz |
system/i2c-tools: Updated for version 4.0, changed homepage.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/i2c-tools/i2c-tools.SlackBuild')
-rw-r--r-- | system/i2c-tools/i2c-tools.SlackBuild | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/system/i2c-tools/i2c-tools.SlackBuild b/system/i2c-tools/i2c-tools.SlackBuild index cceab1381a..a14c9608c8 100644 --- a/system/i2c-tools/i2c-tools.SlackBuild +++ b/system/i2c-tools/i2c-tools.SlackBuild @@ -1,7 +1,8 @@ #!/bin/sh # Slackware build script for i2c-tools -# Copyright 2012-2015 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy + +# Copyright 2012-2018 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=i2c-tools -VERSION=${VERSION:-3.1.1} +VERSION=${VERSION:-4.0} 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 @@ -39,8 +40,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" @@ -48,6 +49,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +elif [ "$ARCH" = "arm" ]; then + SLKCFLAGS="-O2 -march=armv5te" + LIBDIRSUFFIX="" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -65,15 +69,18 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* 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 {} \; +# Fix some things as we are used to have sed -i \ -e "s|/local||" \ -e "s|-O2|${SLKCFLAGS}|" \ - -e "s|/share||" \ + -e "s|/share/man|/man|" \ + -e "s|/lib$|/lib${LIBDIRSUFFIX}|" \ + -e "s|BUILD_STATIC_LIB\ ?=\ 1|BUILD_STATIC_LIB ?= 0|" \ Makefile make |