mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/w3m: New maintainer and build script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
f7f2d17ac7
commit
a638246926
4 changed files with 47 additions and 29 deletions
|
@ -5,9 +5,6 @@ documents containing links to files residing on the local system, as
|
||||||
well as files residing on remote systems. It can display HTML tables,
|
well as files residing on remote systems. It can display HTML tables,
|
||||||
frames, and images, and supports tabbed browsing. In addition, it can
|
frames, and images, and supports tabbed browsing. In addition, it can
|
||||||
be used as a "pager" in much the same manner as "more" or "less".
|
be used as a "pager" in much the same manner as "more" or "less".
|
||||||
This buildscript includes some security and bug fix patches. However
|
w3m can display images in both the framebuffer and the X server.
|
||||||
the actual stable version of w3m is more than 3 years old. You should
|
|
||||||
not use it as your default browser, it is only here as an optional
|
|
||||||
dependency for SuperCollider.
|
|
||||||
|
|
||||||
This requires gc.
|
This requires gc and imlib2.
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
# make exactly 11 lines for the formatting to be correct. It's also
|
||||||
# customary to leave one space after the ':'.
|
# customary to leave one space after the ':'.
|
||||||
|
|
||||||
|-----handy-ruler--------------------------------------------------------|
|
|-----handy-ruler----------------------------------------------------------|
|
||||||
w3m: w3m (text-mode browser)
|
w3m: w3m (text based web browser and pager)
|
||||||
w3m:
|
w3m:
|
||||||
w3m: w3m is a World Wide Web (WWW) text based client. It has English and
|
w3m: w3m is a World Wide Web (WWW) text based client. It has English and
|
||||||
w3m: Japanese help files and an option menu and can be configured to use
|
w3m: Japanese help files and an option menu and can be configured to use
|
||||||
|
@ -16,4 +16,4 @@ w3m: well as files residing on remote systems. It can display HTML tables,
|
||||||
w3m: frames, and images, and supports tabbed browsing. In addition, it can
|
w3m: frames, and images, and supports tabbed browsing. In addition, it can
|
||||||
w3m: be used as a "pager" in much the same manner as "more" or "less".
|
w3m: be used as a "pager" in much the same manner as "more" or "less".
|
||||||
w3m:
|
w3m:
|
||||||
w3m: Homepage: http://w3m.sourceforge.net/
|
w3m: Homepage: http://w3m.sourceforge.net
|
||||||
|
|
|
@ -1,20 +1,33 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Slackware build script for w3m
|
# Slackware build script for w3m
|
||||||
# Written by slakmagik <jsun@freeshell.org>
|
|
||||||
# Released under the WTFPL
|
# Copyright 2011 Grigorios Bouzakis <grbzks@imap.cc>
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Permission to use, copy, modify, and distribute this software for any purpose
|
||||||
|
# with or without fee is hereby granted, provided that the above copyright
|
||||||
|
# notice and this permission notice appear in all copies.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
|
||||||
|
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS AND COPYRIGHT HOLDERS AND THEIR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=w3m
|
PRGNAM=w3m
|
||||||
VERSION=0.5.3
|
VERSION=${VERSION:-0.5.3}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -38,6 +51,8 @@ else
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DOCS="ChangeLog NEWS doc/*"
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
@ -48,32 +63,38 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find . \
|
find . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
-exec chmod 755 {} \; -o \
|
-exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-o -perm 400 \) -exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--enable-keymap=lynx \
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--enable-image=x11,fb \
|
||||||
|
--enable-keymap=w3m \
|
||||||
--enable-gopher \
|
--enable-gopher \
|
||||||
--build=$ARCH-slackware-linux \
|
--with-imagelib=imlib2 \
|
||||||
--host=$ARCH-slackware-linux
|
--with-termlib=ncurses \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make DESTDIR=$PKG install
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
for i in $(find $PKG/usr/man -type l); do ln -s $(readlink $i).gz $i.gz; rm $i; done
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a [ACNT]* doc/* $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -5,6 +5,6 @@ DOWNLOAD="http://downloads.sourceforge.net/w3m/w3m-0.5.3.tar.gz"
|
||||||
MD5SUM="1b845a983a50b8dec0169ac48479eacc"
|
MD5SUM="1b845a983a50b8dec0169ac48479eacc"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Felix Pfeifer"
|
MAINTAINER="Grigorios Bouzakis"
|
||||||
EMAIL="pfeifer[dot]felix[at]googlemail[dot]com"
|
EMAIL="grbzks@imap.cc"
|
||||||
APPROVED="dsomero"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in a new issue