summaryrefslogtreecommitdiff
path: root/libraries/cracklib/cracklib.SlackBuild
diff options
context:
space:
mode:
authorChristopher Walker <kris240376@gmail.com>2010-05-13 00:29:04 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:29:04 +0200
commit9de561d1999da02f43f1f7f0cb5c1655db878874 (patch)
treeb07d746568c01caad67a8f99690ee50a732d72d3 /libraries/cracklib/cracklib.SlackBuild
parent8d1154adbf43be8e75311dfa0aa0ce181c848e7c (diff)
downloadslackbuilds-9de561d1999da02f43f1f7f0cb5c1655db878874.tar.gz
libraries/cracklib: Updated for version 2.8.13
Diffstat (limited to 'libraries/cracklib/cracklib.SlackBuild')
-rw-r--r--libraries/cracklib/cracklib.SlackBuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/libraries/cracklib/cracklib.SlackBuild b/libraries/cracklib/cracklib.SlackBuild
index 2a289ebb4d..4deff1f91c 100644
--- a/libraries/cracklib/cracklib.SlackBuild
+++ b/libraries/cracklib/cracklib.SlackBuild
@@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=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 -e
@@ -39,6 +42,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var \
@@ -65,8 +69,6 @@ make install DESTDIR=$PKG
xargs strip --strip-unneeded 2> /dev/null
)
-#find $PKG/usr/man -type f -exec gzip -9 {} \;
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ABOUT-NLS AUTHORS COPYING INSTALL NEWS README* \
@@ -77,4 +79,4 @@ mkdir $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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}