summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e31834b484719dd365451c6cb02060516d0452e (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
# Maintainer: Lukas Wölfer (domain is thasky) <aur at [domain] dot one>
pkgname=python-backupcrawl-git
pkgver=0.2.6.r0.gaca128e
pkgrel=1
pkgdesc='Crawls through the given directory, and checks which directories are not version controlled.'
url='https://github.com/corrodedHash/backupcrawl'
source=("${pkgname}::git+https://github.com/corrodedHash/backupcrawl#branch=main")
arch=('x86_64' 'i686')
license=('MIT')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")

makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry')
depends=('git' 'pacman' 'python' 'python-rich')
optdepends=()

sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
  # cd "$srcdir/$pkgname"
  echo No tests
}

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