summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2018-01-12 19:43:45 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-01-13 07:13:08 +0700
commit0f0e8fd4a6182928a08e745a40859ddc573997e1 (patch)
tree7f9d4de3dfaf675e5dc08a6dbc88195225b0beef /system
parent03560f87d1971072bbe8cb6a6edd34997724de6d (diff)
downloadslackbuilds-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')
-rw-r--r--system/i2c-tools/i2c-tools.SlackBuild27
-rw-r--r--system/i2c-tools/i2c-tools.info8
-rw-r--r--system/i2c-tools/slack-desc2
3 files changed, 22 insertions, 15 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
diff --git a/system/i2c-tools/i2c-tools.info b/system/i2c-tools/i2c-tools.info
index 6f27a71e45..5d650ac218 100644
--- a/system/i2c-tools/i2c-tools.info
+++ b/system/i2c-tools/i2c-tools.info
@@ -1,8 +1,8 @@
PRGNAM="i2c-tools"
-VERSION="3.1.1"
-HOMEPAGE="https://tracker.debian.org/pkg/i2c-tools"
-DOWNLOAD="ftp://ftp.vim.org/vol/2/metalab/distributions/tinycorelinux/6.x/x86/tcz/src/i2c-tools/i2c-tools-3.1.1.tar.bz2"
-MD5SUM="0fdbff53ebd0b8d9249256d6c56480b1"
+VERSION="4.0"
+HOMEPAGE="https://i2c.wiki.kernel.org/index.php/I2C_Tools"
+DOWNLOAD="https://www.kernel.org/pub/software/utils/i2c-tools/i2c-tools-4.0.tar.xz"
+MD5SUM="f873c657d00bc00e9c47ed938c2cd770"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/system/i2c-tools/slack-desc b/system/i2c-tools/slack-desc
index e023f5d99b..a187c8885c 100644
--- a/system/i2c-tools/slack-desc
+++ b/system/i2c-tools/slack-desc
@@ -15,5 +15,5 @@ i2c-tools: Linux: a bus probing tool, a chip dumper, register-level SMBus access
i2c-tools: helpers, EEPROM decoding scripts, EEPROM programming tools, and a
i2c-tools: python module for SMBus access.
i2c-tools:
-i2c-tools: homepage: https://tracker.debian.org/pkg/i2c-tools
+i2c-tools: homepage: https://i2c.wiki.kernel.org/index.php/I2C_Tools
i2c-tools: