summaryrefslogtreecommitdiff
path: root/misc/pinfo/pinfo.SlackBuild
diff options
context:
space:
mode:
authorArun Prasannan <polar@arunprasannan.com>2010-05-13 00:34:28 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:34:28 +0200
commit1ec4f4a5461aca4cca38b6a5ed43197bb4659289 (patch)
tree3b03bb8823d180560d4d7e11f77ba3438e395638 /misc/pinfo/pinfo.SlackBuild
parent1a8efa5836f3cee78e06ba3a4a40b68721b9e708 (diff)
downloadslackbuilds-1ec4f4a5461aca4cca38b6a5ed43197bb4659289.tar.gz
misc/pinfo: Updated for version 0.6.9
Diffstat (limited to 'misc/pinfo/pinfo.SlackBuild')
-rw-r--r--misc/pinfo/pinfo.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/misc/pinfo/pinfo.SlackBuild b/misc/pinfo/pinfo.SlackBuild
index 0585c2fe50..1788743407 100644
--- a/misc/pinfo/pinfo.SlackBuild
+++ b/misc/pinfo/pinfo.SlackBuild
@@ -35,8 +35,13 @@ 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 -e
@@ -58,6 +63,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
@@ -75,7 +81,9 @@ rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TECHSTUFF $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS ChangeLog COPYING INSTALL NEWS README TECHSTUFF \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
@@ -83,4 +91,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}