1 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
2 # Contributor: Arkham <arkham at archlinux dot us>
3 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
4 # Contributor: Arnaud Durand <biginozNOSPAM_at_free.dot.fr>
5 # Contributor: Nuno Araujo <nuno.araujo at russo79.com>
10 pkgdesc="Deletes unneeded files to free disk space and maintain privacy"
12 url="http://bleachbit.sourceforge.net/"
14 depends=('pygtk>=2' 'python2>=2.6')
16 install=$pkgname.install
17 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
20 $pkgname-admin.desktop)
22 md5sums=('a7de1a425c9c84467aa7be879a3fe95e'
23 'a424bec443cc519391c837948fa98fdd'
24 'ddd834baa40d481a603333638e735825'
25 'fc13f064e8970af4418486469dce05d0')
28 cd $srcdir/$pkgname-$pkgver
31 for file in $(find . -name '*.py' -print); do
32 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
33 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
35 sed -i 's/python/python2/g' Makefile
38 make prefix=/usr DESTDIR=$pkgdir PYTHON=python2 install
42 # Install bin, icon and desktop file
43 install -Dm 755 $srcdir/$pkgname-admin.sh $pkgdir/usr/bin/$pkgname-admin
44 install -Dm 644 $srcdir/$pkgname-admin.png $pkgdir/usr/share/pixmaps/$pkgname-admin.png
45 install -Dm 644 $srcdir/$pkgname-admin.desktop $pkgdir/usr/share/applications/$pkgname-admin.desktop