summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 960b582a93d9b4a449ff6cc9abd65cadd5c67c6d (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
# Maintainer: Dan Beste <Dan.Ray.Beste@gmail.com>

pkgname='stratis-cli-git'
_gitname='stratis-cli'
pkgver=v0.0.2.r3.gbf0beb6
pkgrel=1
pkgdesc='???'
arch=('any')
license=('apache2')
url='https://github.com/stratis-storage/stratis-cli.git'
depends=('python-argparse')
makedepends=('git')
provides=("${_gitname}")
conflicts=("${_gitname}")
source=(
  'git+https://github.com/stratis-storage/stratis-cli.git'
)
sha256sums=(
  'SKIP'
)

pkgver() {
  cd "${_gitname}"

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

package() {
  cd "${_gitname}"

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

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

# vim: ts=2 sw=2 et: