summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77cb9b4d07b4ed34d29fbc49a19a3ad839afa71f (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
# Contributor: a821
# Contributor: j605

pkgname=duviz-git
pkgver=3.2.0.r12.g7e30b21
pkgrel=1
pkgdesc='Command line disk space usage visualization utility'
arch=('any')
url="https://github.com/soxofaan/duviz"
license=('MIT')
depends=('python')
makedepends=('git')
checkdepends=('python-pytest')
provides=('duviz')
conflicts=('duviz')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

check() {
  cd "$pkgname"
  pytest
}

package() {
  cd "$pkgname"
  install -Dm755 duviz.py "${pkgdir}/usr/bin/duviz"
  install -Dm644 README.rst CHANGELOG.md -t "${pkgdir}/usr/share/doc/$pkgname"
  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}