mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
network/surfraw: Updated for version 1.0.7
This commit is contained in:
parent
74355de778
commit
e5dbcd5767
3 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="$1"
|
||||||
OLD="`dirname $NEW`/`basename $NEW .new`"
|
OLD="`dirname $NEW`/`basename $NEW .new`"
|
||||||
|
|
|
@ -24,13 +24,12 @@
|
||||||
|
|
||||||
# Modified by the SlackBuilds.org project
|
# Modified by the SlackBuilds.org project
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
PRGNAM=surfraw
|
PRGNAM=surfraw
|
||||||
VERSION=1.0.7
|
VERSION=1.0.7
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
@ -38,10 +37,17 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
@ -55,10 +61,12 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--infodir=/usr/info
|
--infodir=/usr/info \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
@ -79,4 +87,4 @@ for file in $PKG/etc/*; do
|
||||||
done
|
done
|
||||||
|
|
||||||
cd $PKG
|
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}
|
||||||
|
|
|
@ -2,7 +2,9 @@ PRGNAM="surfraw"
|
||||||
VERSION="1.0.7"
|
VERSION="1.0.7"
|
||||||
HOMEPAGE="http://surfraw.sf.net"
|
HOMEPAGE="http://surfraw.sf.net"
|
||||||
DOWNLOAD="ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/surfraw-1.0.7.tar.gz"
|
DOWNLOAD="ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/surfraw-1.0.7.tar.gz"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM="0957382bbdebf3d678879fa5d2592c9d"
|
MD5SUM="0957382bbdebf3d678879fa5d2592c9d"
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Martin Lefebvre"
|
MAINTAINER="Martin Lefebvre"
|
||||||
EMAIL="dadexter@gmail.com"
|
EMAIL="dadexter@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="rworkman"
|
||||||
|
|
Loading…
Reference in a new issue