summaryrefslogtreecommitdiff
path: root/misc/ibus-chewing/ibus-chewing.SlackBuild
diff options
context:
space:
mode:
authorGuan-Zhong Huang <imprazaguy@gmail.com>2011-03-02 14:58:00 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-03-02 14:58:00 -0300
commitdd27027490462e780a43c54544281b37c2b880f5 (patch)
tree4405f9a4456bbcc23e0891875aadac48ee0643b0 /misc/ibus-chewing/ibus-chewing.SlackBuild
parentf17adeff4cf2eb7bb0fccc4b5c83074e54adfcc5 (diff)
downloadslackbuilds-dd27027490462e780a43c54544281b37c2b880f5.tar.gz
misc/ibus-chewing: Updated for version 1.3.9.2.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'misc/ibus-chewing/ibus-chewing.SlackBuild')
-rw-r--r--misc/ibus-chewing/ibus-chewing.SlackBuild30
1 files changed, 13 insertions, 17 deletions
diff --git a/misc/ibus-chewing/ibus-chewing.SlackBuild b/misc/ibus-chewing/ibus-chewing.SlackBuild
index 9b4cf847a9..7f51d002eb 100644
--- a/misc/ibus-chewing/ibus-chewing.SlackBuild
+++ b/misc/ibus-chewing/ibus-chewing.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ibus-chewing
-VERSION=${VERSION:-1.3.6.20100730}
+VERSION=${VERSION:-1.3.9.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -31,7 +31,6 @@ if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -55,12 +54,12 @@ else
LIBDIRSUFFIX=""
fi
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION-Source
tar xvf $CWD/$PRGNAM-$VERSION-Source.tar.gz
cd $PRGNAM-$VERSION-Source
chown -R root:root .
@@ -70,25 +69,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-mkdir -p build
-cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+# This cmake script doesn't support out-of-source build
+
+cmake \
+ -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DCMAKE_BUILD_TYPE=Release ..
- make
- make install DESTDIR=$PKG
-cd ..
+ -DSYSCONF_INSTALL_DIR=/etc \
+ -DDOC_DIR=/usr/doc \
+ -DCMAKE_BUILD_TYPE=Release
+make VERBOSE=1
+make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL README RELEASE-NOTES.txt \
- $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install