From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/kleansweep/ChangeLog | 2 ++ community/kleansweep/PKGBUILD | 27 ++++++++++++++++++++++ .../kubuntu_03_fix_scons_chmod_error.patch | 23 ++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 community/kleansweep/ChangeLog create mode 100644 community/kleansweep/PKGBUILD create mode 100644 community/kleansweep/kubuntu_03_fix_scons_chmod_error.patch (limited to 'community/kleansweep') diff --git a/community/kleansweep/ChangeLog b/community/kleansweep/ChangeLog new file mode 100644 index 000000000..d8e35c402 --- /dev/null +++ b/community/kleansweep/ChangeLog @@ -0,0 +1,2 @@ +2007-06-25 Georg Grabler (STiAT) +* Added libtool option diff --git a/community/kleansweep/PKGBUILD b/community/kleansweep/PKGBUILD new file mode 100644 index 000000000..c6783590d --- /dev/null +++ b/community/kleansweep/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 77134 2012-10-05 11:29:08Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: Guillermo A. Amaral + +pkgname=kleansweep +pkgver=0.2.9 +pkgrel=6 +pkgdesc="Allows you to reclaim disk space by finding unneeded files" +license=("GPL") +url="http://linux.bydg.org/~yogin/" +arch=(i686 x86_64) +depends=('kdelibs3') +makedepends=('scons') +options=('libtool') +#source=(http://linux-projects.net/d/kleansweep-$pkgver.tar.gz +source=(http://arch.p5n.pp.ru/~sergej/dl/2011/kleansweep-$pkgver.tar.gz + kubuntu_03_fix_scons_chmod_error.patch) +md5sums=('25fea364644590acd23fe766506e0b92' + 'bebb833313fc184848b5fef77a7cb310') + +build() { + cd $srcdir/$pkgname-$pkgver + [ $NOEXTRACT -eq 1 ] || patch -p1 <$srcdir/kubuntu_03_fix_scons_chmod_error.patch + [ $NOEXTRACT -eq 1 ] || ./configure + scons + scons install DESTDIR=$pkgdir +} diff --git a/community/kleansweep/kubuntu_03_fix_scons_chmod_error.patch b/community/kleansweep/kubuntu_03_fix_scons_chmod_error.patch new file mode 100644 index 000000000..4e6495016 --- /dev/null +++ b/community/kleansweep/kubuntu_03_fix_scons_chmod_error.patch @@ -0,0 +1,23 @@ +diff -Nur -x '*.orig' -x '*~' kleansweep-0.2.9/admin/generic.py kleansweep-0.2.9.new/admin/generic.py +--- kleansweep-0.2.9/admin/generic.py 2008-02-15 02:59:29.000000000 +0100 ++++ kleansweep-0.2.9.new/admin/generic.py 2008-02-15 03:00:49.278304972 +0100 +@@ -244,7 +244,8 @@ + ret=self.env.Program(self.p_localtarget, self.p_localsource) + if not self.env.has_key('NOAUTOINSTALL'): + ins=self.env.bksys_install(self.instdir, ret) +- if self.perms: self.env.AddPostAction(ins, self.env.Chmod(ins, self.perms)) ++ if ins and self.perms: ++ for i in ins: self.env.AddPostAction(ins, self.env.Chmod(str(i), self.perms)) + elif self.type=='staticlib': + ret=self.env.StaticLibrary(self.p_localtarget, self.p_localsource) + +@@ -462,7 +463,8 @@ + if not destfile: install_list = env.Install(lenv.join(basedir,subdir), lenv.make_list(files)) + elif subdir: install_list = env.InstallAs(lenv.join(basedir,subdir,destfile), lenv.make_list(files)) + else: install_list = env.InstallAs(lenv.join(basedir,destfile), lenv.make_list(files)) +- if perms and install_list: lenv.AddPostAction(install_list, lenv.Chmod(install_list, perms)) ++ if perms and install_list: ++ for i in install_list: lenv.AddPostAction(install_list, lenv.Chmod(str(i), perms)) + env.Alias('install', install_list) + return install_list + -- cgit v1.2.3-54-g00ecf