summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a81368dbce3cab54481df9c013eb265ea21cbd6 (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
# Maintainer: GI Jack <GI_Jack@hackermail.com>

pkgname=depix-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r55.3d6fc24
pkgrel=1
_pyver=3.9
pkgdesc="A tool for recovering passwords from pixelized screenshots"
arch=('any')
url="https://github.com/beurtschipper/Depix"
license=('CC-BY-4.0')
depends=('python')
makedepends=('git')
provides=("depix")
conflicts=("depix")
source=("${pkgname}::git+https://github.com/beurtschipper/Depix.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname}"
  # Git, no tags available
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${pkgname}"
  python -m installer --destdir="$pkgdir" dist/*.whl
}