blob: e5a50ab1afe27e46f07e91342aeb7f71bb8f7166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: graysky <therealgraysky AT protonmail DOT com>
# Contributer: Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: yugrotavele <yugrotavele at archlinux dot us>
# Contributor: Arkham <arkham at archlinux dot us>
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor: Arnaud Durand <biginozNOSPAM_at_free.dot.fr>
# Contributor: Nuno Araujo <nuno.araujo at russo79.com>
pkgname=bleachbit-cli
_pkgname=bleachbit
pkgver=6.0.4
pkgrel=1
pkgdesc='Deletes unneeded files to free disk space and maintain privacy. CLI version/no GUI.'
conflicts=($_pkgname)
provides=("bleachbit=${pkgver}")
arch=(any)
url='https://www.bleachbit.org/'
license=(GPL-3.0-or-later)
depends=(python-psutil)
optdepends=('python-chardet: detect file encoding when rewriting text files')
makedepends=(git)
source=(git+https://github.com/bleachbit/bleachbit.git#tag=v${pkgver}?signed)
validpgpkeys=(A9E582E4054A159315EDC943D6D447B02B4D4C9D) # Andrew Ziem <ahz001@gmail.com>
sha256sums=('f8905019fb8919f27616fe53797ecbc8d587aaf0872a5a5869fe9ea839b0e532')
package() {
cd $_pkgname
make prefix=/usr DESTDIR="$pkgdir" install
# to avoid cache getting generated by executable pre-build it which
# makes for a clean uninstall/update
#python -m compileall -d /usr "$pkgdir"/usr
#python -O -m compileall -d /usr "$pkgdir"/usr
# suggestion by Meow to force script to operate in cli mode
sed -i 's/if 1/if 0/' "$pkgdir"/usr/bin/bleachbit
rm -rf "$pkgdir"/usr/share/{applications,pixmaps}
rm -rf "$pkgdir"/usr/share/polkit-1
}
|