2010-12-10 06:26:39 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
## Written by Martin Ivanov (tramni@abv.bg)
|
|
|
|
## Package Homepage: http://bgoffice.sourceforge.net/assistant/
|
|
|
|
|
|
|
|
## 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.
|
|
|
|
|
|
|
|
# Modified by Michiel van Wessem <michiel@slackbuilds.org> 20081020
|
|
|
|
# Modified by Robby Workman <rworkman@slackbuilds.org> 20101209
|
|
|
|
# * My changes are all good, so flames should still go to Martin... ;-)
|
|
|
|
|
|
|
|
PRGNAM=full-pack
|
2017-03-21 20:15:38 +01:00
|
|
|
VERSION=${VERSION:-1.0}
|
2010-12-10 06:26:39 +01:00
|
|
|
BUILD=${BUILD:-1}
|
|
|
|
TAG=${TAG:-_SBo}
|
|
|
|
|
|
|
|
ARCH=noarch
|
|
|
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
TMP=${TMP:-/tmp/SBo}
|
|
|
|
PKG=$TMP/package-$PRGNAM
|
|
|
|
OUTPUT=${OUTPUT:-/tmp}
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# No Compiler flags needed, nothing is actually built
|
|
|
|
|
|
|
|
rm -rf $PKG
|
|
|
|
mkdir -p $TMP $PKG $OUTPUT
|
|
|
|
cd $TMP
|
|
|
|
rm -rf $PRGNAM
|
|
|
|
tar xvf $CWD/$PRGNAM.tar.bz2
|
|
|
|
cd $PRGNAM
|
|
|
|
chown -R root:root .
|
2013-11-22 08:37:19 +01:00
|
|
|
find -L . \
|
|
|
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
2010-12-10 06:26:39 +01:00
|
|
|
-exec chmod 755 {} \; -o \
|
|
|
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
|
|
|
-exec chmod 644 {} \;
|
|
|
|
|
|
|
|
make DATA_DIR=$PKG/usr/share/bgoffice install || exit 1
|
|
|
|
|
|
|
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
|
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
|
|
|
|
|
|
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/install
|
|
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
|
|
|
|
cd $PKG
|
|
|
|
/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|