updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / bleachbit-cli / PKGBUILD
blobdf488759c9f3e995f73c10bfa750d93f17fcf446
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>
9 pkgname=bleachbit-cli
10 _pkgname=bleachbit
11 pkgver=0.9.1
12 pkgrel=1
13 pkgdesc="Deletes unneeded files to free disk space and maintain privacy. CLI version/no GUI."
14 arch=('any')
15 url="http://bleachbit.sourceforge.net/"
16 conflicts='bleachbit'
17 license=('GPL3')
18 depends=('python2>=2.6')
19 source=(http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.bz2)
21 package() {
22         cd $srcdir/$_pkgname-$pkgver
24         # Fix python2 header
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
28         done
29         sed -i 's/python/python2/g' Makefile
31         # Compile
32         make prefix=/usr DESTDIR=$pkgdir PYTHON=python2 install
34 sha256sums=('e823fbb102dd986617328ebfb6fa01255b24256c484782cde502d6aa12373e90')