diff options
author | Martin Ivanov <tramni@abv.bg> | 2010-05-11 22:55:07 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 22:55:07 +0200 |
commit | 9473a2ca85eb55b0fd978082ce7307af18d09fd2 (patch) | |
tree | 411c5b6e31333e3e7dc7e3bfa61eb1876e3e731c /office/ding/ding.SlackBuild | |
parent | 94b0c45351adbeadd332d7e2108fe1bb3cc65eb8 (diff) |
office/ding: Added to 12.1 repository
Diffstat (limited to 'office/ding/ding.SlackBuild')
-rw-r--r-- | office/ding/ding.SlackBuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/office/ding/ding.SlackBuild b/office/ding/ding.SlackBuild new file mode 100644 index 000000000000..a57c3291c2c4 --- /dev/null +++ b/office/ding/ding.SlackBuild @@ -0,0 +1,68 @@ +#!/bin/sh + +## Written by Martin Ivanov (tramni@abv.bg) +## Package Homepage: http://www-user.tu-chemnitz.de/~fri/ding/ + +## 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=ding +VERSION=1.5 +ARCH=${ARCH:-noarch} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# No configure flags are needed, as this is repackiging. + +set -e + +rm -rf $PKG +mkdir -p $PKG $OUTPUT $TMP +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +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 {} \; + +mkdir -p $PKG/usr/{bin,man/man1} +cp ding $PKG/usr/bin || exit 1 +cp ding.1 $PKG/usr/man/man1 || exit 1 + +mkdir -p $PKG/usr/share/{dict,applications,pixmaps} +cp de-en.txt $PKG/usr/share/dict|| exit 1 +cp ding.desktop $PKG/usr/share/applications || exit 1 +cp ding.png $PKG/usr/share/pixmaps + +( 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 +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + 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 -R CHANGES COPYING 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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |