diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:24:57 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:24:57 +0200 |
commit | 6c856f5259e8792837174b4c265650ba304b0d21 (patch) | |
tree | dd6f98ec688f36217e8a341e741003b07a999216 /development/medit/medit.SlackBuild | |
parent | 2e1ec1373428703e0e4ee07944f861f067b76120 (diff) | |
download | slackbuilds-6c856f5259e8792837174b4c265650ba304b0d21.tar.gz |
development/medit: Updated for version 0.9.4
Diffstat (limited to 'development/medit/medit.SlackBuild')
-rw-r--r-- | development/medit/medit.SlackBuild | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/development/medit/medit.SlackBuild b/development/medit/medit.SlackBuild index de8ce5be9d..555b8e781a 100644 --- a/development/medit/medit.SlackBuild +++ b/development/medit/medit.SlackBuild @@ -1,9 +1,26 @@ #!/bin/sh - +# # Slackware build script for medit -# 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=medit VERSION=0.9.4 @@ -16,10 +33,17 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +set -eu + 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 rm -rf $PKG @@ -39,12 +63,13 @@ CFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --disable-static \ --disable-generated-files \ - --with-fam + --with-fam \ + --libdir=/usr/lib${LIBDIRSUFFIX} make make install-strip DESTDIR=$PKG -rm -rf $PKG/usr/lib/python2.? +rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/python2.? gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION $PKG/install @@ -55,4 +80,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} |