updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / clean-home / PKGBUILD
blob1534b8c697e90ef6ec62d3ad571b248614c5d245
1 # CleanHome: Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Original Contributor: DonVla <donvla@users.sourceforge.net>
5 pkgname=clean-home
6 dirname=cleanHome
7 pkgver=0.8
8 pkgrel=1
9 pkgdesc="Cleans up user's home directory by analyzing '.' config files/directories against a collaboratively maintained database"
10 arch=("any")
11 url="http://cleanhome.sourceforge.net/"
12 license=("GPL2")
13 depends=("perl")
14 optdepends=("firefox: for BrowserCall plugin" "opera: for BrowserCall plugin")
15 options=(!emptydirs)
16 source=(http://downloads.sourceforge.net/sourceforge/cleanhome/${dirname}-${pkgver}.tar.gz)
18 build() {
19         cd ${srcdir}/${dirname}
21         # Patches
22         patch -Np0 < ${startdir}/extra/plugin-location.patch || return 1
23         #  optional: uncomment if you want to use opera
24         #  patch -Np0 < ${startdir}/extra/opera-as-browser.patch
26         # Removals
27         rm "CHPlugins/AptCacheInfo.pm" "CHPlugins/DiskUsage.pm" "CHPlugins/DpkgInstallState.pm"
29         # Directories
30         install -d ${pkgdir}/usr/{share/${dirname}/,bin/}
32         # Application
33         cp -r * ${pkgdir}/usr/share/${dirname}/
34         #for file in CHPlugins/*; do
35         #       install -m 0644 "$file" "${pkgdir}/usr/share/${dirname}"
36         #done
38         # Binaries
39         #install -D -m 0755 "cleanhome.pl" "${pkgdir}/usr/bin/${pkgname}"
40         ln -s /usr/share/${dirname}/cleanhome.pl ${pkgdir}/usr/bin/${pkgname}
43 sha1sums=('58545185bc63b5b4aceb23e6a699b69bd0a50e24')