diff options
author | D Woodfall <dave@slackbuilds.org> | 2023-05-16 20:39:09 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-05-20 11:17:58 +0700 |
commit | 5ae2dab06fe36732c6c4c1a632d3cbebbbcb3d7b (patch) | |
tree | 59f862312742c4ee7950d8a1169d16e9ca4fcbe0 /misc | |
parent | c114c72185631685ecc9ee66d20480da856c1324 (diff) |
misc/ibus-table-chinese: ARCH=noarch. Remove unused CFLAGS etc..
Signed-off-by: bedlam <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ibus-table-chinese/ibus-table-chinese.SlackBuild | 39 |
1 files changed, 9 insertions, 30 deletions
diff --git a/misc/ibus-table-chinese/ibus-table-chinese.SlackBuild b/misc/ibus-table-chinese/ibus-table-chinese.SlackBuild index 7ebad5177da75..c9e4733461666 100644 --- a/misc/ibus-table-chinese/ibus-table-chinese.SlackBuild +++ b/misc/ibus-table-chinese/ibus-table-chinese.SlackBuild @@ -26,17 +26,10 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=ibus-table-chinese VERSION=${VERSION:-1.8.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" @@ -47,20 +40,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -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 rm -rf $PKG @@ -77,16 +56,16 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# This cmake script doesn't support out-of-source build +mkdir -p build +cd build cmake \ - -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DSYSCONF_INSTALL_DIR=/etc \ - -DDOC_DIR=/usr/doc \ - -DCMAKE_BUILD_TYPE=Release + -Wno-dev \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + .. make make install DESTDIR=$PKG +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 |