# Maintainer: Dan Beste 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: