diff options
author | Erwin van Zanten <e.van.zanten.evz@gmail.com> | 2014-10-09 18:07:59 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-11 00:14:17 +0700 |
commit | a56d26ba97b257303445db0922b66352b2bed77d (patch) | |
tree | a774079df2ac65ae1f1be1b0a5b79252cd91197f /system/bleachbit | |
parent | 0f91e1f356cb54c4c292099492ee149331f4bb12 (diff) | |
download | slackbuilds-a56d26ba97b257303445db0922b66352b2bed77d.tar.gz |
system/bleachbit: Updated for version 1.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bleachbit')
-rw-r--r-- | system/bleachbit/bleachbit.SlackBuild | 60 | ||||
-rw-r--r-- | system/bleachbit/bleachbit.info | 6 |
2 files changed, 44 insertions, 22 deletions
diff --git a/system/bleachbit/bleachbit.SlackBuild b/system/bleachbit/bleachbit.SlackBuild index 6a845ba755..ae71d6a856 100644 --- a/system/bleachbit/bleachbit.SlackBuild +++ b/system/bleachbit/bleachbit.SlackBuild @@ -1,9 +1,8 @@ #!/bin/sh -# SlackBuild script for bleachbit. +# Slackware build script for bleachbit -# Copyright 2009-2011 Pierre Cazenave <pwcazenave {at} gmail [dot] com> -# Copyright 2013-2014 Erwin van Zanten <e.van.zanten.evz@gmail.com> +# Copyright 2013-2014 Erwin van Zanten, Dordrecht, The Netherlands, Europe # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -12,53 +11,76 @@ # 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. +# 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=bleachbit -VERSION=${VERSION:-1.0} +VERSION=${VERSION:-1.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -ARCH=noarch +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 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 mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar -xvf $CWD/$PRGNAM-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Exclude the Windows-only cleaners from the source per author's instructions. grep -l os=.windows. cleaners/*xml | xargs rm -f +make make install DESTDIR=$PKG prefix=/usr +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 -cp -a COPYING PKG-INFO README doc/* $PKG/usr/doc/$PRGNAM-$VERSION + +cp -a MANIFEST* COPYING PKG-INFO README doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc diff --git a/system/bleachbit/bleachbit.info b/system/bleachbit/bleachbit.info index 67fbe447db..af7a87263b 100644 --- a/system/bleachbit/bleachbit.info +++ b/system/bleachbit/bleachbit.info @@ -1,8 +1,8 @@ PRGNAM="bleachbit" -VERSION="1.0" +VERSION="1.4" HOMEPAGE="http://bleachbit.sourceforge.net/" -DOWNLOAD="http://sourceforge.net/projects/bleachbit/files/bleachbit-1.0.tar.bz2" -MD5SUM="2a7a4c587cf88050cc20fbb30bb64813" +DOWNLOAD="http://sourceforge.net/projects/bleachbit/files/bleachbit-1.4.tar.bz2" +MD5SUM="f2d7eb4b61c593338d7a8579473a288c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |