[arch-commits] Commit in bottom/repos (community-x86_64 community-x86_64/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Sun Jul 18 23:28:30 UTC 2021


    Date: Sunday, July 18, 2021 @ 23:28:30
  Author: grawlinson
Revision: 978548

archrelease: copy trunk to community-x86_64

Added:
  bottom/repos/community-x86_64/
  bottom/repos/community-x86_64/PKGBUILD
    (from rev 978547, bottom/trunk/PKGBUILD)

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

Copied: bottom/repos/community-x86_64/PKGBUILD (from rev 978547, bottom/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-07-18 23:28:30 UTC (rev 978548)
@@ -0,0 +1,50 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Clement Tsang (xoronth) <cjhtsang at uwaterloo.ca>
+
+pkgname=bottom
+pkgver=0.6.3
+pkgrel=2
+pkgdesc="A graphical process/system monitor"
+arch=('x86_64')
+url="https://github.com/ClementTsang/bottom"
+license=('MIT')
+makedepends=('cargo')
+optdepends=(
+  "bash-completion: for shell auto-completion"
+  "fish: for shell auto-completion"
+  "zsh-completions: for shell auto-completion"
+)
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+b2sums=('2f71722f1b8c100a82d7e684cbc001d493bafaa94319fac564551e34085a9c68c3d34b77147dddcb904013d9c823b1abc21826f828c090117babb47bd2054f37')
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --release --locked --no-default-features
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  CARGO_HUSKY_DONT_INSTALL_HOOKS=true cargo test --release --locked --no-default-features
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" target/release/btm
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" *.md
+  cp -vr docs sample_configs "$pkgdir/usr/share/doc/$pkgname"
+
+  # completions
+  local target_dir=$(ls target/release/build/bottom-*/out/btm.bash | head -n1 | xargs dirname)
+  install -Dm644 "$target_dir"/_btm "$pkgdir/usr/share/zsh/site-functions/_btm"
+  install -Dm644 "$target_dir"/btm.bash "$pkgdir/usr/share/bash-completion/completions/btm"
+  install -Dm644 "$target_dir"/btm.fish "$pkgdir/usr/share/fish/vendor_completions.d/btm.fish"
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list