diff options
Diffstat (limited to 'system/kqemu/kqemu.SlackBuild')
-rw-r--r-- | system/kqemu/kqemu.SlackBuild | 23 |
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} |