diff options
author | Luis Henrique <lmello.009@gmail.com> | 2010-05-13 00:39:17 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:39:17 +0200 |
commit | a9a9af5901f3f47f008a01476b47a11c781d1c0d (patch) | |
tree | c923351fa08f95506033f966ea7cb668c4e60069 /office/latex2html/latex2html.SlackBuild | |
parent | 457acd2fa096e2547f300e5b1aa2543dbb4575a8 (diff) | |
download | slackbuilds-a9a9af5901f3f47f008a01476b47a11c781d1c0d.tar.gz |
office/latex2html: Updated for version 2008
Diffstat (limited to 'office/latex2html/latex2html.SlackBuild')
-rw-r--r-- | office/latex2html/latex2html.SlackBuild | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/office/latex2html/latex2html.SlackBuild b/office/latex2html/latex2html.SlackBuild index 410c612bbd..2d8c8de8d7 100644 --- a/office/latex2html/latex2html.SlackBuild +++ b/office/latex2html/latex2html.SlackBuild @@ -17,10 +17,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e # Exit on most errors @@ -42,9 +45,10 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --shlibdir=/usr/lib/latex2html \ + --shlibdir=/usr/lib${LIBDIRSUFFIX}/latex2html \ --mandir=/usr/man \ --enable-static=no \ --enable-shared=yes \ @@ -62,12 +66,7 @@ make install DESTDIR=$PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ xargs strip --strip-unneeded 2> /dev/null || true 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 + xargs strip --strip-unneeded 2> /dev/null || true ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -79,4 +78,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |