diff options
author | Mikhail Zotov <mikhail dot ru at gmail dot com> | 2010-05-13 00:36:10 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:36:10 +0200 |
commit | c3cca32d89dc715b5b82207d49a6aa47d7e399a2 (patch) | |
tree | 2f8d2a3572c3624c1351ea83de377e9b394e4a5a /network/dillo/dillo.SlackBuild | |
parent | 9904452d56a1cf26fe801c89fba888277e9a1b87 (diff) |
network/dillo: Updated for version 2.2
Diffstat (limited to 'network/dillo/dillo.SlackBuild')
-rw-r--r-- | network/dillo/dillo.SlackBuild | 53 |
1 files changed, 34 insertions, 19 deletions
diff --git a/network/dillo/dillo.SlackBuild b/network/dillo/dillo.SlackBuild index ea82afdda4ad..22229a45bf1b 100644 --- a/network/dillo/dillo.SlackBuild +++ b/network/dillo/dillo.SlackBuild @@ -1,8 +1,8 @@ #!/bin/sh -# Slackware build script for dillo +# Slackware build script for dillo. It has NOT been tested on x86_64. -# Copyright 2006 Martin Lefebvre <dadexter@gmail.com> +# Copyright 2009-2010 Mikhail Zotov # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,13 +22,12 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - PRGNAM=dillo -VERSION=0.8.6 +VERSION=${VERSION:-2.2} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,42 +35,58 @@ 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 + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP +cd $TMP rm -rf $PRGNAM-$VERSION -tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . -chmod -R a-s,u+w,go+r-w . +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 {} \; CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ - --disable-dlgui \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ - --localstatedir=/var + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG # Let's not clobber config files if they already exist -mv $PKG/etc/dillorc $PKG/etc/dillorc.new -mv $PKG/etc/dpidrc $PKG/etc/dpidrc.new +mv $PKG/etc/dillo/dillorc $PKG/etc/dillo/dillorc.new +mv $PKG/etc/dillo/dpidrc $PKG/etc/dillo/dpidrc.new +mv $PKG/etc/dillo/keysrc $PKG/etc/dillo/keysrc.new -( 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 -a AUTHORS COPYING ChangeLog* INSTALL NEWS README* doc/*.txt \ - $PKG/usr/doc/$PRGNAM-$VERSION/ +cp -a \ + README AUTHORS INSTALL COPYING \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -79,4 +94,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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} |