1 # Maintainer: graysky <graysky AT archlinux DOT us>
2 # Contributer: Bartłomiej Piotrowski <barthalion@gmail.com>
3 # Contributor: yugrotavele <yugrotavele at archlinux dot us>
4 # Contributor: Arkham <arkham at archlinux dot us>
5 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
6 # Contributor: Arnaud Durand <biginozNOSPAM_at_free.dot.fr>
7 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
13 pkgdesc="Deletes unneeded files to free disk space and maintain privacy. CLI version/no GUI."
15 url="http://bleachbit.sourceforge.net/"
18 depends=('python2>=2.6')
19 source=(http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.bz2)
22 cd $srcdir/$_pkgname-$pkgver
25 for file in $(find . -name '*.py' -print); do
26 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
27 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
29 sed -i 's/python/python2/g' Makefile
32 make prefix=/usr DESTDIR=$pkgdir PYTHON=python2 install
34 sha256sums=('e823fbb102dd986617328ebfb6fa01255b24256c484782cde502d6aa12373e90')