diff options
Diffstat (limited to 'system/hardinfo2/hardinfo2.SlackBuild')
-rw-r--r-- | system/hardinfo2/hardinfo2.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/system/hardinfo2/hardinfo2.SlackBuild b/system/hardinfo2/hardinfo2.SlackBuild index 469ec1f341..c7865f0db9 100644 --- a/system/hardinfo2/hardinfo2.SlackBuild +++ b/system/hardinfo2/hardinfo2.SlackBuild @@ -6,12 +6,15 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20250614 bkw: update for v2.2.13. +# 20250216 bkw: update for v2.2.7. +# 20241124 bkw: update for v2.2.4. # 20241006 bkw: update for v2.1.17. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=hardinfo2 -VERSION=${VERSION:-2.1.17} +VERSION=${VERSION:-2.2.13} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -35,16 +38,12 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" - LIBDIRSUFFIX="" fi set -e @@ -65,23 +64,26 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ # libsoup3. No idea what (if any) advantage this would give. When # Slackware (not SBo) ships libsoup 3.x, remove this option. +# 20250216 bkw: don't access network during build. +sed -i 's,appstreamcli validate,& --no-net,' CMakeLists.txt + mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DCMAKE_INSTALL_MANDIR=/usr/man \ -DHARDINFO2_SERVICE=0 \ -DHARDINFO2_LIBSOUP3=0 \ -DCMAKE_BUILD_TYPE=Release .. - make + sed -i 's,-O3,,' CMakeCache.txt + make VERBOSE=1 make install/strip DESTDIR=$PKG cd .. # install-strip fails to strip this: -strip $PKG/usr/lib*/$PRGNAM/modules/qgears2 +strip $PKG/usr/lib*/$PRGNAM/modules/*gears* gzip -9 $PKG/usr/man/man*/* |