system/i2c-tools: Updated for version 4.0, changed homepage.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
03560f87d1
commit
0f0e8fd4a6
|
@ -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
|
||||
|
|
|
@ -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=""
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue