summaryrefslogtreecommitdiff
path: root/libraries/libevent/libevent.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libevent/libevent.SlackBuild')
-rw-r--r--libraries/libevent/libevent.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/libraries/libevent/libevent.SlackBuild b/libraries/libevent/libevent.SlackBuild
index 3219c7242b..eba08a3d61 100644
--- a/libraries/libevent/libevent.SlackBuild
+++ b/libraries/libevent/libevent.SlackBuild
@@ -1,11 +1,11 @@
-#!/bin/sh
+#!/bin/sh -eu
# Slackware build script for libevent
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=libevent
-VERSION=1.4.4
-SRCVER=1.4.4-stable
+VERSION=1.4.11
+SRCVER=1.4.11-stable
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -17,14 +17,15 @@ 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 -eu
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -41,6 +42,7 @@ CFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--enable-static=no \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux
make