aboutsummaryrefslogtreecommitdiff
path: root/misc/ibus-fbterm
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@gmail.com>2011-07-17 19:14:04 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-07-21 22:51:49 -0500
commitfca35209e1c6bfdd2f32db8f54f3c886ade94125 (patch)
treea0ae8b512f9305e09a898d13fae166c206b7ca17 /misc/ibus-fbterm
parent50b11656501449deec9506c0fc4424008075ccd9 (diff)
misc/ibus-fbterm: Added (input method for fbterm)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/ibus-fbterm')
-rw-r--r--misc/ibus-fbterm/README5
-rw-r--r--misc/ibus-fbterm/ibus-fbterm.SlackBuild83
-rw-r--r--misc/ibus-fbterm/ibus-fbterm.info10
-rw-r--r--misc/ibus-fbterm/slack-desc19
4 files changed, 117 insertions, 0 deletions
diff --git a/misc/ibus-fbterm/README b/misc/ibus-fbterm/README
new file mode 100644
index 0000000000000..e5d10e10a0de5
--- /dev/null
+++ b/misc/ibus-fbterm/README
@@ -0,0 +1,5 @@
+ibus-fbterm is an input method for fbterm based on ibus.
+Please refer to README in /usr/doc/ibus-fbterm-0.9.1
+
+This requires ibus and fbterm.
+
diff --git a/misc/ibus-fbterm/ibus-fbterm.SlackBuild b/misc/ibus-fbterm/ibus-fbterm.SlackBuild
new file mode 100644
index 0000000000000..9e85c0ef61f80
--- /dev/null
+++ b/misc/ibus-fbterm/ibus-fbterm.SlackBuild
@@ -0,0 +1,83 @@
+#!/bin/sh
+
+# Slackware build script for ibus-fbterm
+
+# Written by crocket (crockabiscuit@gmail.com)
+
+PRGNAM=ibus-fbterm
+VERSION=${VERSION:-0.9.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+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
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+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 \
+ AUTHORS COPYING ChangeLog INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+
diff --git a/misc/ibus-fbterm/ibus-fbterm.info b/misc/ibus-fbterm/ibus-fbterm.info
new file mode 100644
index 0000000000000..6fb17f5232f4b
--- /dev/null
+++ b/misc/ibus-fbterm/ibus-fbterm.info
@@ -0,0 +1,10 @@
+PRGNAM="ibus-fbterm"
+VERSION="0.9.1"
+HOMEPAGE="http://code.google.com/p/ibus-fbterm"
+DOWNLOAD="http://ibus-fbterm.googlecode.com/files/ibus-fbterm-0.9.1.tar.gz"
+MD5SUM="966e4f275500979b78dd1303e96ca32d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="crocket"
+EMAIL="crockabiscuit@gmail.com"
+APPROVED="dsomero"
diff --git a/misc/ibus-fbterm/slack-desc b/misc/ibus-fbterm/slack-desc
new file mode 100644
index 0000000000000..c8f31d3472b6d
--- /dev/null
+++ b/misc/ibus-fbterm/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+ibus-fbterm: ibus-fbterm (input method for fbterm)
+ibus-fbterm:
+ibus-fbterm: ibus-fbterm is an input method for fbterm based on ibus.
+ibus-fbterm: Please refer to README in /usr/doc/ibus-fbterm-0.9.1
+ibus-fbterm:
+ibus-fbterm: Website : http://code.google.com/p/ibus-fbterm/
+ibus-fbterm:
+ibus-fbterm:
+ibus-fbterm:
+ibus-fbterm:
+ibus-fbterm: