libraries/libevent: Updated for version 1.4.4

This commit is contained in:
Erik Hanson 2010-05-11 22:23:53 +02:00 committed by Robby Workman
parent fb43a7df84
commit 7ab0731fe3
2 changed files with 20 additions and 20 deletions

View file

@ -4,7 +4,8 @@
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=libevent
VERSION=1.3e
VERSION=1.4.4
SRCVER=1.4.4-stable
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -18,14 +19,18 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
fi
set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION || exit 1
cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@ -36,21 +41,16 @@ CFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--enable-static=no \
|| exit 1
--build=$ARCH-slackware-linux
make || exit 1
make install-strip DESTDIR=$PKG || exit 1
make
make install-strip DESTDIR=$PKG
( cd $PKG/usr/man || exit
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
gzip -9 $PKG/usr/man/man?/*.?
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README sample $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install
cp -a README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG

View file

@ -1,8 +1,8 @@
PRGNAM="libevent"
VERSION="1.3e"
VERSION="1.4.4"
HOMEPAGE="http://www.monkey.org/~provos/libevent/"
DOWNLOAD="http://www.monkey.org/~provos/libevent-1.3e.tar.gz"
MD5SUM="8553ad0f8a35d8d96ae0c69c387e06d3"
DOWNLOAD="http://www.monkey.org/~provos/libevent-1.4.4-stable.tar.gz"
MD5SUM="5d7591aa6301f06315b52bade472bf2f"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="David Somero"
APPROVED="rworkman"