[arch-commits] Commit in (bottom bottom/repos bottom/trunk bottom/trunk/PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Sun Jul 18 23:27:51 UTC 2021
Date: Sunday, July 18, 2021 @ 23:27:50
Author: grawlinson
Revision: 978547
addpkg: bottom 0.6.3-2
Added:
bottom/
bottom/repos/
bottom/trunk/
bottom/trunk/PKGBUILD
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Added: bottom/trunk/PKGBUILD
===================================================================
--- bottom/trunk/PKGBUILD (rev 0)
+++ bottom/trunk/PKGBUILD 2021-07-18 23:27:50 UTC (rev 978547)
@@ -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