aboutsummaryrefslogtreecommitdiff
path: root/system/hdapsd/hdapsd.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/hdapsd/hdapsd.SlackBuild')
-rw-r--r--system/hdapsd/hdapsd.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/system/hdapsd/hdapsd.SlackBuild b/system/hdapsd/hdapsd.SlackBuild
index 5922b826b9bbd..adef845d16fa3 100644
--- a/system/hdapsd/hdapsd.SlackBuild
+++ b/system/hdapsd/hdapsd.SlackBuild
@@ -39,10 +39,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
@@ -62,6 +65,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -89,13 +93,6 @@ cat $CWD/hdapsd.conf > $PKG/etc/hdapsd.conf.new
cat $CWD/rc.hdapsd > $PKG/etc/rc.d/rc.hdapsd.new
chmod 0755 $PKG/etc/rc.d/rc.hdapsd.new
-# Put udev rules in the right place and prefix them with a number
-# 51 is more or less arbitrary, but should be fine
-# If anyone has a link to what other distributions are doing, let us know
-#mkdir -p $PKG/lib
-#mv $PKG/etc/udev $PKG/lib
-#mv $PKG/lib/udev/rules.d/hdapsd.rules $PKG/lib/udev/rules.d/51-hdapsd.rules
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
# ChangeLog NEWS README are empty
cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
@@ -108,4 +105,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}