summaryrefslogtreecommitdiff
path: root/system/kqemu/kqemu.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@unrealize.co.uk>2010-05-13 00:40:47 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:40:47 +0200
commit2a07dfb072911b2193ff8788978e879db253c3fe (patch)
tree3cbbb063da906a8ad2fc424da43e33e680c73dc7 /system/kqemu/kqemu.SlackBuild
parent3c15d7c20c70d532dad5c09a4ed194619829e9fd (diff)
downloadslackbuilds-2a07dfb072911b2193ff8788978e879db253c3fe.tar.gz
system/kqemu: Updated for version 1.4.0pre1
Diffstat (limited to 'system/kqemu/kqemu.SlackBuild')
-rw-r--r--system/kqemu/kqemu.SlackBuild23
1 files changed, 10 insertions, 13 deletions
diff --git a/system/kqemu/kqemu.SlackBuild b/system/kqemu/kqemu.SlackBuild
index ec466278ba..4551a813b5 100644
--- a/system/kqemu/kqemu.SlackBuild
+++ b/system/kqemu/kqemu.SlackBuild
@@ -5,6 +5,8 @@
# Copyright 2009 David Woodfall <dave@unrealize.co.uk>
# All rights reserved.
#
+# Thanks to Marco Pessotto for pointing out the useless depmod line
+#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
@@ -21,8 +23,6 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Modified by the SlackBuilds.org project
PRGNAM=kqemu
VERSION=${VERSION:-1.4.0pre1}
@@ -41,11 +41,9 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
-KERNELVERSION=${KERNELVERSION:-$(uname -r)}
-PKG_VERS=${VERSION}_$(echo $KERNELVERSION | tr - _)
-
set -e
rm -rf $PKG
@@ -64,12 +62,12 @@ find . \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --kernel-path=/lib/modules/${KERNELVERSION}/build
-
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --prefix=/usr
make
-sed -i "s/\/lib/\$PKG\/lib/" install.sh
-PKG=$TMP/package-$PRGNAM make install
+sed -i "s#/lib#$PKG/lib#" install.sh
+sed -i "/^\/sbin\/depmod -a/d" install.sh
+make install
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp Changelog README LICENSE COPYING $PKG/usr/doc/$PRGNAM-$VERSION
@@ -77,8 +75,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-sed "s%@KERNEL@%$KERNELVERSION%" $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.tgz
-
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}