blob: 9d82c114ba06965ec14775e34da9d5c5a643ffea (
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
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Dan Beste <Dan.Ray.Beste@gmail.com>
pkgname='stratis-cli'
pkgver=0.9.0
_justbasesver=0.09
_justbytesver=0.11
pkgrel=2
pkgdesc='A CLI for the Stratis Project.'
arch=('any')
license=('Apache')
url='https://stratis-storage.github.io/'
depends=('python' 'dbus-client-gen' 'python-dbus-client-gen' 'python-dbus-signature-pyparsing' 'python-into-dbus')
makedepends=('dbus-glib' 'git' 'mpfr' 'python-argparse' 'python-dbus' 'python-pip' 'asciidoc')
checkdepends=('python-tox')
conflicts=('python-justbases' 'python-justbytes')
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/stratis-storage/stratis-cli/archive/v${pkgver}.tar.gz"
"justbases-${_justbasesver}.tar.gz::https://github.com/mulkieran/justbases/archive/v${_justbasesver}.tar.gz"
"justbytes-${_justbytesver}.tar.gz::https://github.com/mulkieran/justbytes/archive/v${_justbytesver}.tar.gz"
)
sha256sums=(
'bdcc30301d171de0720a15bbd616fd3c4169ff990dc1f0915baed8995848d4d0'
'623ff8dcc53e491a693f5a2c3caea41c4386fda54368fa30220955a9e1179513'
'42f800190f89316b921aab15d64caf4e8e67b88c5c4d459b9d788bba116c6210'
)
check() {
cd "${pkgname}-${pkgver}"
tox
}
package() {
# install justbases version needed for package
cd "justbases-${_justbasesver}"
python setup.py install --root="${pkgdir}" --optimize=1
# install justbytes version needed for package
cd "../justbytes-${_justbytesver}"
python setup.py install --root="${pkgdir}" --optimize=1
# install actual package
cd "../${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 "shell-completion/bash/stratis" "$pkgdir/usr/share/bash-completion/completions/stratis"
install -D -m644 "shell-completion/zsh/_stratis" "$pkgdir/usr/share/zsh/site-functions/_stratis"
cd "docs"
make stratis.8
install -D -m644 stratis.8 "${pkgdir}/usr/share/man/man8/stratis.8"
}
# vim: ts=2 sw=2 et:
|