diff options
-rw-r--r-- | office/kbibtex/README | 8 | ||||
-rw-r--r-- | office/kbibtex/doinst.sh | 3 | ||||
-rw-r--r-- | office/kbibtex/kbibtex.SlackBuild | 80 | ||||
-rw-r--r-- | office/kbibtex/kbibtex.info | 8 | ||||
-rw-r--r-- | office/kbibtex/slack-desc | 19 |
5 files changed, 118 insertions, 0 deletions
diff --git a/office/kbibtex/README b/office/kbibtex/README new file mode 100644 index 0000000000000..2fae2d5729e2d --- /dev/null +++ b/office/kbibtex/README @@ -0,0 +1,8 @@ +KBibTeX is a BibTeX editor for KDE to edit bibliographies used with +LaTeX. Features include comfortable input masks, starting web queries +(e. g. Google or PubMed) and exporting to PDF, PostScript, RTF and +XML/HTML. As KBibTeX is using KDE's KParts technology, KBibTeX can +be embedded into Kile or Konqueror. It has been written by Thomas +Fischer and is released under the GPL 2. + +Homepage: http://www.unix-ag.uni-kl.de/~fischer/kbibtex/ diff --git a/office/kbibtex/doinst.sh b/office/kbibtex/doinst.sh new file mode 100644 index 0000000000000..5dc6bb58c008d --- /dev/null +++ b/office/kbibtex/doinst.sh @@ -0,0 +1,3 @@ +if [ -x usr/bin/update-desktop-database ]; then + usr/bin/update-desktop-database -q usr/share/applications +fi diff --git a/office/kbibtex/kbibtex.SlackBuild b/office/kbibtex/kbibtex.SlackBuild new file mode 100644 index 0000000000000..b342f13f03c3c --- /dev/null +++ b/office/kbibtex/kbibtex.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# Written by Martin Ivanov (tramni@abv.bg) +# Package Homepage: http://www.unix-ag.uni-kl.de/~fischer/kbibtex + +## Feel free to use, modify, redistribute this script. +## If you make changes please add a "Modified by" line so that I don't +## receive kudos or flames for things I didn't write... Thanks. + +# Heavily Modified by Michiel van Wessem <michiel@slackbuilds.org> 20081020 + +PRGNAM=kbibtex +VERSION=0.2.1 +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" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +rm -rf $TMP/$PRGNAM-$VERSION +cd $TMP || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || 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 \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-debug \ + --infodir=/usr/info \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --program-prefix="" \ + --program-suffix="" \ + --build=$ARCH-slackware-linux \ + || exit 1 + +make || exit 1 +make install DESTDIR=$PKG || 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 + find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip -g 2> /dev/null +) + +( cd $PKG/usr/man + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README 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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/office/kbibtex/kbibtex.info b/office/kbibtex/kbibtex.info new file mode 100644 index 0000000000000..c6f561903f32b --- /dev/null +++ b/office/kbibtex/kbibtex.info @@ -0,0 +1,8 @@ +PRGNAM="kbibtex" +VERSION="0.2.1" +HOMEPAGE="http://www.unix-ag.uni-kl.de/~fischer/kbibtex/" +DOWNLOAD="http://www.unix-ag.uni-kl.de/~fischer/kbibtex/download/kbibtex-0.2.1.tar.bz2" +MD5SUM="8d2b142a8878e86398a30786ede674e1" +MAINTAINER="Martin Ivanov" +EMAIL="tramni@abv.bg" +APPROVED="Michiel" diff --git a/office/kbibtex/slack-desc b/office/kbibtex/slack-desc new file mode 100644 index 0000000000000..982dbed500e8a --- /dev/null +++ b/office/kbibtex/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------------------------------------------------------| +kbibtex: KBibTeX (A BibTeX editor for KDE) +kbibtex: +kbibtex: KBibTeX is a BibTeX editor for KDE to edit bibliographies used with +kbibtex: LaTeX. Features include comfortable input masks, starting web queries +kbibtex: (e. g. Google or PubMed) and exporting to PDF, PostScript, RTF and +kbibtex: XML/HTML. As KBibTeX is using KDE's KParts technology, KBibTeX can +kbibtex: be embedded into Kile or Konqueror. It has been written by Thomas +kbibtex: Fischer and is released under the GPL 2. +kbibtex: +kbibtex: Homepage: http://www.unix-ag.uni-kl.de/~fischer/kbibtex/ +kbibtex: |