aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
Diffstat (limited to 'office')
-rw-r--r--office/kbgoffice/README7
-rw-r--r--office/kbgoffice/kbgoffice.SlackBuild68
-rw-r--r--office/kbgoffice/kbgoffice.info8
-rw-r--r--office/kbgoffice/slack-desc17
4 files changed, 100 insertions, 0 deletions
diff --git a/office/kbgoffice/README b/office/kbgoffice/README
new file mode 100644
index 0000000000000..097fc8186afaa
--- /dev/null
+++ b/office/kbgoffice/README
@@ -0,0 +1,7 @@
+Kbgoffice is a dictionary programme using the set of English-Bulgarian and
+Bulgarian-English Dictionaries in the full-pack package.
+
+It requires the full-pack package to be installed at run time (it's
+not needed for compiling).
+
+Homepage: http://bgoffice.sourceforge.net/assistant/
diff --git a/office/kbgoffice/kbgoffice.SlackBuild b/office/kbgoffice/kbgoffice.SlackBuild
new file mode 100644
index 0000000000000..98afc943c778f
--- /dev/null
+++ b/office/kbgoffice/kbgoffice.SlackBuild
@@ -0,0 +1,68 @@
+#!/bin/sh
+
+# Build script for kbgoffice
+# Written by Martin Ivanov (tramni@abv.bg)
+
+# Feel free to use, modify, redistribute this script.
+# If you make changes please modify the "Written by"
+# so that I don't recieve emails about a script I
+# did not write. Thanks.
+
+# Extensively modified by Michiel van Wessem <michiel@slackbuilds.org> 20081020
+
+PRGNAM=kbgoffice
+VERSION=1.8
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP || exit 1
+rm -rf $PRGNAM-$VERSION
+tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION || exit 1
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --datadir=/usr/share/$PRGNAM \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-x \
+ --with-kde \
+ --build=$ARCH-slackware-linux \
+ || exit 1
+
+make || exit 1
+make DESTDIR=$PKG install || exit 1
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -R ChangeLog COPYING COPYING.BULGARIAN INSTALL README THANKS TODO \
+ $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 -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/office/kbgoffice/kbgoffice.info b/office/kbgoffice/kbgoffice.info
new file mode 100644
index 0000000000000..9b615f65eb5aa
--- /dev/null
+++ b/office/kbgoffice/kbgoffice.info
@@ -0,0 +1,8 @@
+PRGNAM="kbgoffice"
+VERSION="1.8"
+HOMEPAGE="http://bgoffice.sourceforge.net/assistant/"
+DOWNLOAD="http://downloads.sourceforge.net/bgoffice/kbgoffice-1.8.tar.gz"
+MD5SUM="128e25ca2b5c7573f9a263619f400430"
+MAINTAINER="Martin Ivanov"
+EMAIL="tramni@abv.bg"
+APPROVED="Michiel"
diff --git a/office/kbgoffice/slack-desc b/office/kbgoffice/slack-desc
new file mode 100644
index 0000000000000..037b42f7af0ce
--- /dev/null
+++ b/office/kbgoffice/slack-desc
@@ -0,0 +1,17 @@
+# 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------------------------------------------------------|
+kbgoffice: Kbgoffice ( A dictionary programme )
+kbgoffice:
+kbgoffice: It is a dictionary programme using the set of English-Bulgarian and
+kbgoffice: Bulgarian-English Dictionaries in the full-pack.
+kbgoffice:
+kbgoffice: Homepage:
+kbgoffice: http://bgoffice.sourceforge.net/assistant
+kbgoffice:
+kbgoffice: