diff options
author | Grigorios Bouzakis <grbzks@xsmail.com> | 2011-01-03 00:12:41 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-01-10 15:04:06 -0600 |
commit | 2f4ac0584656d96f171f35c27129692fc367d88b (patch) | |
tree | dfb1d432ef9aa8bd41450d056fc258d4dd6a5572 /office/leafpad/leafpad.SlackBuild | |
parent | 39a69b5e1adc63854d5d9397e1ed145d36b75834 (diff) | |
download | slackbuilds-2f4ac0584656d96f171f35c27129692fc367d88b.tar.gz |
office/leafpad: Upgraded for version 0.8.18.1.
Signed-off-by: Michiel van Wessem <michiel@slackbuilds.org>
Diffstat (limited to 'office/leafpad/leafpad.SlackBuild')
-rw-r--r-- | office/leafpad/leafpad.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/office/leafpad/leafpad.SlackBuild b/office/leafpad/leafpad.SlackBuild index f1ad615ee9..27221a93d2 100644 --- a/office/leafpad/leafpad.SlackBuild +++ b/office/leafpad/leafpad.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Slackware build script for leafpad -# Copyright 2007-2009 Grigorios Bouzakis <grbzks@xsmail.com> +# Copyright 2007-2010 Grigorios Bouzakis <grbzks@xsmail.com> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for any purpose @@ -20,11 +20,18 @@ # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=leafpad -VERSION=${VERSION:-0.8.17} -ARCH=${ARCH:-x86_64} +VERSION=${VERSION:-0.8.18.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -39,9 +46,12 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi -DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README" +DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README" set -e @@ -72,7 +82,7 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 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 |