#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-doxygen VERSION=1.6.3 ARCH=alpha BUILD=1 rm -rf $PKG mkdir -p $PKG/usr ( cd $TMP rm -rf doxygen-$VERSION tar xf $CWD/doxygen-$VERSION.src.tar.gz cd doxygen-$VERSION # Allow setting complete docdir: chown -R root.root . ./configure \ --shared \ --release \ --prefix /usr \ --docdir /usr/doc/doxygen-$VERSION make || exit 1 make install INSTALL=$PKG/usr make install_docs INSTALL=$PKG/usr DOCDIR=$PKG/usr/doc/doxygen-$VERSION || exit 1 chown -R root.bin $PKG/usr/bin gzip -9 $PKG/usr/man/man?/*.? rm -rf $PKG/usr/doc/doxygen-$VERSION/doc/*.1 ( cd $PKG/usr/doc/doxygen-$VERSION tar cjf examples.tar.bz2 examples rm -rf examples tar cjf html.tar.bz2 html rm -rf html ) ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/doxygen-$VERSION cp -a INSTALL LANGUAGE.HOWTO LICENSE PLATFORMS README VERSION $PKG/usr/doc/doxygen-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/doxygen-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/doxygen.build.log