[arch-commits] Commit in stratis-cli/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 18:03:28 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:03:27
  Author: felixonmars
Revision: 752924

archrelease: copy trunk to community-staging-any

Added:
  stratis-cli/repos/community-staging-any/
  stratis-cli/repos/community-staging-any/PKGBUILD
    (from rev 752923, stratis-cli/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: stratis-cli/repos/community-staging-any/PKGBUILD (from rev 752923, stratis-cli/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 18:03:27 UTC (rev 752924)
@@ -0,0 +1,44 @@
+# Maintainer: Jiachen YANG <farseerfc at archlinux.org>
+# Contributor: Dan Beste <Dan.Ray.Beste at gmail.com>
+
+pkgname='stratis-cli'
+pkgver=2.2.0
+_pkgver=$pkgver
+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-into-dbus' 'python-justbytes' 'python-dateutil' 'python-semantic-version' 'python-psutil')
+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=('cea4a38f4e67927f43bfe8891fc9e623546db612d7c73a32166fad37aa88c9c7')
+
+### 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:



More information about the arch-commits mailing list