diff options
author | Pierre Cazenave <pwcazenave at gmail {dot} com> | 2010-05-12 23:33:20 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 23:33:20 +0200 |
commit | 6f4c95667119ea9c55937d38b139974966360b0c (patch) | |
tree | c26136a060973146a78de00ffabbef08a81135fe /system/bleachbit/bleachbit.SlackBuild | |
parent | 29e232356b58c678f69097e170850d6652561209 (diff) |
system/bleachbit: Added to 12.2 repository
Diffstat (limited to 'system/bleachbit/bleachbit.SlackBuild')
-rw-r--r-- | system/bleachbit/bleachbit.SlackBuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/system/bleachbit/bleachbit.SlackBuild b/system/bleachbit/bleachbit.SlackBuild new file mode 100644 index 0000000000000..35a5d7955af2e --- /dev/null +++ b/system/bleachbit/bleachbit.SlackBuild @@ -0,0 +1,72 @@ +#!/bin/sh + +# SlackBuild script for bleachbit. +# +# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com> +# 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=bleachbit +VERSION=${VERSION:-0.4.1} +ARCH=${ARCH:-noarch} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* +cd $PRGNAM-$VERSION +chown -R root:root . + +# Ignore the Slackware package manager's directories +# Thanks to Andrew Ziew upstream for the quick response +patch -p1 < $CWD/patches/bleachbit-0.4.1-Unix.py.diff + +# Make a launcher using this debian patch +patch -p1 < $CWD/patches/bleachbit-0.4.1-launcher.diff + +# Fix the icon in the .desktop file +sed -i -e 's|Icon=bleachbit.png|Icon=bleachbit|g' bleachbit.desktop + +python setup.py install --root $PKG +make -C po install DESTDIR=$PKG + +# Make the launcher executable by all +chmod 755 $PKG/usr/bin/bleachbit + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a 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 +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |