summaryrefslogtreecommitdiff
path: root/libraries/libflashsupport/libflashsupport.SlackBuild
diff options
context:
space:
mode:
authorMauro Giachero <mauro dot giachero at gmail dot com>2010-05-13 00:30:36 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:30:36 +0200
commit2984d60275636f1b4e0bbbe3db5e72af6f83a6f7 (patch)
treee7cc49e8de78a90ce379a59e054ed1624b6124ff /libraries/libflashsupport/libflashsupport.SlackBuild
parentce05c4f782e6c60bb214f8d30599bb1a95fde65b (diff)
downloadslackbuilds-2984d60275636f1b4e0bbbe3db5e72af6f83a6f7.tar.gz
libraries/libflashsupport: Updated for version 20080328
Diffstat (limited to 'libraries/libflashsupport/libflashsupport.SlackBuild')
-rw-r--r--libraries/libflashsupport/libflashsupport.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/libraries/libflashsupport/libflashsupport.SlackBuild b/libraries/libflashsupport/libflashsupport.SlackBuild
index 4fb7eb29e7..0c40f57d98 100644
--- a/libraries/libflashsupport/libflashsupport.SlackBuild
+++ b/libraries/libflashsupport/libflashsupport.SlackBuild
@@ -40,10 +40,13 @@ PULSE=${PULSE:-no}
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
@@ -74,6 +77,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var
@@ -81,7 +85,8 @@ make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -94,4 +99,4 @@ mkdir -p $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}