summaryrefslogtreecommitdiff
path: root/libraries/libevent
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libevent')
-rw-r--r--libraries/libevent/libevent.SlackBuild32
-rw-r--r--libraries/libevent/libevent.info8
2 files changed, 20 insertions, 20 deletions
diff --git a/libraries/libevent/libevent.SlackBuild b/libraries/libevent/libevent.SlackBuild
index 482ce52154..3219c7242b 100644
--- a/libraries/libevent/libevent.SlackBuild
+++ b/libraries/libevent/libevent.SlackBuild
@@ -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
diff --git a/libraries/libevent/libevent.info b/libraries/libevent/libevent.info
index af6feb1552..bb4b2edc47 100644
--- a/libraries/libevent/libevent.info
+++ b/libraries/libevent/libevent.info
@@ -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"