summaryrefslogtreecommitdiff
path: root/misc/ibus-qt/ibus-qt.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2017-08-30 21:39:38 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-10-11 06:20:01 +0700
commitedd184fa6bf648b966b14f339561d056c88d6b3b (patch)
tree2d6f72895219ed19ef55459643d59a7268b8bc3f /misc/ibus-qt/ibus-qt.SlackBuild
parent7fdca74bdec2550428e2d180f9d8ce0cef0a1285 (diff)
downloadslackbuilds-edd184fa6bf648b966b14f339561d056c88d6b3b.tar.gz
misc/ibus-qt: Updated for version 1.3.3.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'misc/ibus-qt/ibus-qt.SlackBuild')
-rw-r--r--misc/ibus-qt/ibus-qt.SlackBuild45
1 files changed, 31 insertions, 14 deletions
diff --git a/misc/ibus-qt/ibus-qt.SlackBuild b/misc/ibus-qt/ibus-qt.SlackBuild
index 200351a12d..52ee315875 100644
--- a/misc/ibus-qt/ibus-qt.SlackBuild
+++ b/misc/ibus-qt/ibus-qt.SlackBuild
@@ -2,11 +2,31 @@
# Slackware build script for ibus-qt
-# Written by Grissiom <chaos.proton@gmail.com>
+# Copyright 2017 Heinz Wiesinger, Amsterdam, The Netherlands
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Originally written by Grissiom <chaos.proton@gmail.com>
PRGNAM=ibus-qt
-VERSION=${VERSION:-1.3.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.3.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,22 +74,19 @@ find -L . \
mkdir build
cd build
cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_C_FLAGS="${SLKCFLAGS}" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
-DLIBDIR=lib${LIBDIRSUFFIX} \
- -DDOCDIR=/usr/doc/$PRGNAM-$VERSION \
- -DMANDIR=/usr/man \
..
+
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
-
-cp -a AUTHORS COPYING README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING INSTALL README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install