diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-09 14:23:07 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-09 14:23:07 -0400 |
commit | 8ca1255a23500dcd1d12826c9b85058b8be6f293 (patch) | |
tree | da9fcb4297695db824431d898cdbde6e31fb257a /system | |
parent | 86797dd6a30bb4f2d3706830122df1ea8887ed2e (diff) |
system/cutecom: Fix build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'system')
-rw-r--r-- | system/cutecom/cutecom.SlackBuild | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/system/cutecom/cutecom.SlackBuild b/system/cutecom/cutecom.SlackBuild index 19f724a611f7..b6d64c8ae4da 100644 --- a/system/cutecom/cutecom.SlackBuild +++ b/system/cutecom/cutecom.SlackBuild @@ -4,25 +4,27 @@ # Written by Vincent Batts, vbatts@hashbangbash.com +# 20220409 bkw: Modified by SlackBuilds.org, BUILD=3: +# - get rid of KDECONFIG_EXECUTABLE in cmake command, we don't have +# it on Slackware 15.0. +# - i486 => i586. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=cutecom VERSION=${VERSION:-0.22.0} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -32,8 +34,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" @@ -57,9 +59,9 @@ 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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ mkdir -p build cd build @@ -67,17 +69,13 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DKDECONFIG_EXECUTABLE=/usr/bin/kde4-config \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ -DMAN_INSTALL_DIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release .. make - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - # MAN_INSTALL_DIR is ignored, I guess mv $PKG/usr/share/man $PKG/usr/man |