aboutsummaryrefslogtreecommitdiff
path: root/libraries/cracklib/cracklib.SlackBuild
diff options
context:
space:
mode:
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 2a289ebb4d2d..4deff1f91c14 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}