aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Lopez Jr. <fernando.lopezjr@gmail.com>2024-10-05 08:31:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-05 08:33:03 +0700
commitc1c6421c59d855409b35252514cfccac1a59f816 (patch)
tree328528d5c58d7ffbe163bef73697094082f3d3b8
parent9ec663d16ebfc2a6debf89d03051e83b5df321b6 (diff)
development/stlink: Updated for version 1.8.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/stlink/stlink.SlackBuild17
-rw-r--r--development/stlink/stlink.info6
2 files changed, 12 insertions, 11 deletions
diff --git a/development/stlink/stlink.SlackBuild b/development/stlink/stlink.SlackBuild
index 742485399472..d2add72d3fcb 100644
--- a/development/stlink/stlink.SlackBuild
+++ b/development/stlink/stlink.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=stlink
-VERSION=${VERSION:-1.5.1}
+VERSION=${VERSION:-1.8.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -70,8 +70,9 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
+sed -i 's|ts = calloc(sizeof(struct stlink_chipid_params), 1);|ts = calloc(1, sizeof(struct stlink_chipid_params));|' src/stlink-lib/chipid.c
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -94,20 +95,20 @@ cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-if [ "$ARCH" = "x86_64" ]; then
- mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
-fi
+#if [ "$ARCH" = "x86_64" ]; then
+# mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
+#fi
mv $PKG/usr/share/man/ $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Fix path
-sed -i "s|$PRGNAM-$VERSION|$PRGNAM|" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/stlink.pc
-sed -i "s|lib/|lib${LIBDIRSUFFIX}/|" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/stlink.pc
+#sed -i "s|$PRGNAM-$VERSION|$PRGNAM|" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/stlink.pc
+#sed -i "s|lib/|lib${LIBDIRSUFFIX}/|" $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig/stlink.pc
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ChangeLog.md LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE.md README.md SECURITY.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/development/stlink/stlink.info b/development/stlink/stlink.info
index 9461cc66110f..7cac5e6b9c24 100644
--- a/development/stlink/stlink.info
+++ b/development/stlink/stlink.info
@@ -1,8 +1,8 @@
PRGNAM="stlink"
-VERSION="1.5.1"
+VERSION="1.8.0"
HOMEPAGE="https://github.com/texane/stlink"
-DOWNLOAD="https://github.com/texane/stlink/archive/v1.5.1/stlink-1.5.1.tar.gz"
-MD5SUM="f9aa3cbad062f8648c8c7915c45d4638"
+DOWNLOAD="https://github.com/texane/stlink/archive/v1.8.0/stlink-1.8.0.tar.gz"
+MD5SUM="701c2098d50139a0b6cceca560125434"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""