summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6359c2fba4bd9d2508fcf696073a1f959d2848a (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
# Maintainer: thegala <thegala@disroot.org>

_pkgname=bleachbit
pkgname=bleachbit-py3-git
pkgver=r4914.13ee23b7
pkgrel=3
pkgdesc='Deletes unneeded files to free disk space and maintain privacy. Python 3 version.'
url='https://www.bleachbit.org/'
license=('GPL3')
source=("${_pkgname}::git+https://github.com/bleachbit/bleachbit.git")
sha256sums=('SKIP')
arch=('any')
depends=('python-gobject' 'gtk3')
makedepends=('git')
conflicts=('bleachbit')
provides=('bleachbit')

prepare() {
  cd "${srcdir}/${_pkgname}"
  git checkout py3
}

pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/${_pkgname}"
  make prefix=/usr DESTDIR="$pkgdir" install
}