diff options
author | David Woodfall <dave@dawoodfall.net> | 2010-10-17 11:05:41 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-10-17 20:16:53 -0500 |
commit | bd4ccfaee97531a627c19ff2268cc99769ec7d0a (patch) | |
tree | 0d4ffeb7322f79f709f9571ff0ef4c7aa7a886ae /office/rednotebook/rednotebook.SlackBuild | |
parent | 76b83a1df0816ea5741fabac464b8efc0c3b1bf6 (diff) | |
download | slackbuilds-bd4ccfaee97531a627c19ff2268cc99769ec7d0a.tar.gz |
office/rednotebook: Updated for version 1.1.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'office/rednotebook/rednotebook.SlackBuild')
-rw-r--r-- | office/rednotebook/rednotebook.SlackBuild | 54 |
1 files changed, 39 insertions, 15 deletions
diff --git a/office/rednotebook/rednotebook.SlackBuild b/office/rednotebook/rednotebook.SlackBuild index 0f2c6132d7..581ad57b67 100644 --- a/office/rednotebook/rednotebook.SlackBuild +++ b/office/rednotebook/rednotebook.SlackBuild @@ -1,21 +1,35 @@ #!/bin/sh -# Slackware build script for rednotebook - -# Written by Pablo Santamaria (pablosantamaria@gmail.com) - +# Slackware build script for python-rednotebook +# Copyright 2010 David Woodfall <dave@dawoodfall.net> +# 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=rednotebook -VERSION=${VERSION:-0.8.9} +VERSION=${VERSION:-1.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -25,6 +39,20 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM 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" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + set -e rm -rf $PKG @@ -40,19 +68,15 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -python setup.py build -python setup.py install --prefix=$PKG/usr - -mkdir -p $PKG/usr/share/applications -install -m 644 rednotebook.desktop $PKG/usr/share/applications -mkdir -p $PKG/usr/share/pixmaps -install -m 644 rednotebook.png $PKG/usr/share/pixmaps +python setup.py install --root=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS CHANGELOG LICENSE README* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS CHANGELOG LICENSE README.Packagers README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |