summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f65065de7eb26909f3da96b99c9debf239be584 (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
41
42
43
44
# Maintainer: Dan Beste <Dan.Ray.Beste@gmail.com>

pkgname='stratis-cli-git'
pkgver=0.5.0.r17.g41d1232
pkgrel=1
pkgdesc='stratis-cli is a tool that provides a command-line interface (CLI) for interacting with the Stratis daemon, stratisd.'
arch=('any')
license=('apache2')
url='stratis-storage.github.io'
depends=('python-argparse' 'python-dbus' 'python-justbytes' 'yapf')
makedepends=('git')
provides=("${pkgname/-git}")
conflicts=("${pkgname/-git}")
source=(
  'git+https://github.com/stratis-storage/stratis-cli.git'
)
sha256sums=(
  'SKIP'
)

pkgver() {
  cd "${pkgname/-git}"

  git describe --tags --long           \
    | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \
    | sed 's/v//'
}

check() {
  cd "${pkgname/-git}"

  tox
}

package() {
  cd "${pkgname/-git}"

  install -d "${pkgdir}/usr/share/licenses/"

  install -m 644 LICENSE "${pkgdir}/usr/share/licenses/"
  python setup.py install --root="${pkgdir}" --optimize=1
}

# vim: ts=2 sw=2 et: