Date: Saturday, August 17, 2019 @ 06:15:20 Author: farseerfc Revision: 499957
archrelease: copy trunk to community-testing-any Added: stratis-cli/repos/community-testing-any/ stratis-cli/repos/community-testing-any/PKGBUILD (from rev 499956, stratis-cli/trunk/PKGBUILD) ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Copied: stratis-cli/repos/community-testing-any/PKGBUILD (from rev 499956, stratis-cli/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2019-08-17 06:15:20 UTC (rev 499957) @@ -0,0 +1,44 @@ +# Maintainer: Jiachen YANG <farsee...@archlinux.org> +# Contributor: Dan Beste <dan.ray.be...@gmail.com> + +pkgname='stratis-cli' +pkgver=1.0.4 +_pkgver=$pkgver +pkgrel=1 +pkgdesc='A CLI for the Stratis Project.' +arch=('any') +license=('Apache') +url='https://stratis-storage.github.io/' +depends=('python-dbus-client-gen' 'python-into-dbus' 'python-justbytes' 'python-dateutil') +makedepends=('dbus-glib' 'git' 'mpfr' 'python-argparse' 'python-dbus' 'python-pip' 'asciidoc') +# checkdepends=('python-nose' 'python-hypothesis' 'stratisd') +source=( + "${pkgname}-${_pkgver}.tar.gz::https://github.com/stratis-storage/stratis-cli/archive/v${_pkgver}.tar.gz" +) +sha256sums=('29fa5d87c2e449b0ec580595999072de36aaedec5d850831525fe557d1393c6c') + +### ignore tests because it requires root permission to access stratisd +# check() { +# cd "${pkgname}-${_pkgver}" +# export STRATISD="/usr/bin/stratisd" +# nosetests +# } + +build () { + cd "${pkgname}-${_pkgver}/docs" + make stratis.8 +} +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" + install -D -m644 stratis.8 "${pkgdir}/usr/share/man/man8/stratis.8" +} + +# vim: ts=2 sw=2 et: