diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:31:15 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:31:15 +0200 |
commit | 83434141a196ecb77fa1b99b80756160e3048de4 (patch) | |
tree | 796bbe12fd40178c1864dffb01c75e2f34adb624 /libraries/libmspack/libmspack.SlackBuild | |
parent | 64c7102d41719568219e3a27fb520dcb7c4dbae3 (diff) | |
download | slackbuilds-83434141a196ecb77fa1b99b80756160e3048de4.tar.gz |
libraries/libmspack: Updated for version 0.0.20060920alpha
Diffstat (limited to 'libraries/libmspack/libmspack.SlackBuild')
-rw-r--r-- | libraries/libmspack/libmspack.SlackBuild | 42 |
1 files changed, 34 insertions, 8 deletions
diff --git a/libraries/libmspack/libmspack.SlackBuild b/libraries/libmspack/libmspack.SlackBuild index 8a1b2f1e13..77a85207c4 100644 --- a/libraries/libmspack/libmspack.SlackBuild +++ b/libraries/libmspack/libmspack.SlackBuild @@ -1,9 +1,26 @@ #!/bin/sh - +# # Slackware build script for libmspack -# Written by Erik Hanson erik@slackbuilds.org - -set -eu +# +# Copyright 2009 Erik W. Hanson, Minneapolis, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# 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. PRGNAM=libmspack VERSION=0.0.20060920alpha @@ -18,12 +35,17 @@ 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 -eu + rm -rf $PKG mkdir -p $TMP $PKG cd $TMP @@ -36,21 +58,25 @@ chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --mandir=/usr/man \ - --disable-static + --disable-static \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING.LIB INSTALL NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION -cp -ar doc $PKG/usr/doc/$PRGNAM-$VERSION/html +cp -a doc $PKG/usr/doc/$PRGNAM-$VERSION/html rm $PKG/usr/doc/$PRGNAM-$VERSION/html/{Makefile,Doxyfile,.cvsignore} cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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} |