#!/bin/sh # Heavily based on the Slackware 12.0 SlackBuild # http://www.htmldoc.org # Packagers Gohanz ( gohanz@infinito.it) # http://www.slacky.it # Depends from: # Fltk.............( http://www.fltk.org ) CWD=`pwd` if ["$TMP" = ""]; then TMP=/tmp fi PKG=$TMP/package-htmldoc NAME=htmldoc VERSION=1.8.27 ARCH=${ARCH:-i686} BUILD=1as if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xvjf $CWD/$NAME-$VERSION-source.tar.bz2 echo "+-------------------------------------+" echo "| Starting SlackBuild $NAME-$VERSION |" echo "+-------------------------------------+" cd $NAME-$VERSION find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; ./configure --prefix=/usr \ make make install prefix=$PKG/usr mkdir -p $PKG/usr/bin (cd htmldoc cp -a htmldoc $PKG/usr/bin ) mkdir -p $PKG/usr/doc/$NAME cp -a *.txt $PKG/usr/doc/$NAME cd $CWD cp -a *.SlackBuild slack-desc $PKG/usr/doc/$NAME cp -a $PKG/usr/share/doc/htmldoc/* $PKG/usr/doc/$NAME cp -a $TMP/$NAME-$VERSION/doc/* $PKG/usr/doc/$NAME rm -r $PKG/usr/share/doc mkdir -p $PKG/usr/share/applications cp -a $CWD/htmldoc.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/pixmaps cp -a $TMP/$NAME-$VERSION/desktop/htmldoc-32.png $PKG/usr/share/pixmaps/htmldoc.png mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc strip --strip-unneeded $PKG/usr/bin/* gzip -9 $PKG/usr/man/*/* cd $PKG chown -R root:root . requiredbuilder -y -v -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi