updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bleachbit / PKGBUILD
blob270e177cc3e0c33cfc55088f85a2acd69ba1074d
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>
7 pkgname=bleachbit
8 pkgver=0.9.0
9 pkgrel=1
10 pkgdesc="Deletes unneeded files to free disk space and maintain privacy"
11 arch=('any')
12 url="http://bleachbit.sourceforge.net/"
13 license=('GPL3')
14 depends=('pygtk>=2' 'python2>=2.6')
15 optdepends=('gksu')
16 install=$pkgname.install
17 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
18         $pkgname-admin.sh
19         $pkgname-admin.png
20         $pkgname-admin.desktop)
22 md5sums=('a7de1a425c9c84467aa7be879a3fe95e'
23          'a424bec443cc519391c837948fa98fdd'
24          'ddd834baa40d481a603333638e735825'
25          'fc13f064e8970af4418486469dce05d0')
27 build() {
28     cd $srcdir/$pkgname-$pkgver
30     # Fix python2 header
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
34     done
35     sed -i 's/python/python2/g' Makefile
37     # Compile
38     make prefix=/usr DESTDIR=$pkgdir PYTHON=python2 install
41 package() {
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