[arch-commits] Commit in himalaya/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Sat Mar 5 06:44:29 UTC 2022
Date: Saturday, March 5, 2022 @ 06:44:29
Author: alerque
Revision: 1142051
upgpkg: himalaya 0.5.8-3; package bash/fish/zsh completions
Modified:
himalaya/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-05 06:23:55 UTC (rev 1142050)
+++ PKGBUILD 2022-03-05 06:44:29 UTC (rev 1142051)
@@ -4,7 +4,7 @@
pkgbase=himalaya
pkgname=('himalaya' 'vim-himalaya')
pkgver=0.5.8
-pkgrel=2
+pkgrel=3
pkgdesc="A CLI email client"
arch=('x86_64')
url="https://github.com/soywod/himalaya"
@@ -11,27 +11,35 @@
license=('BSD')
depends=('gcc-libs' 'notmuch' 'openssl')
makedepends=('cargo')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('99b5f4c4b6b3977e6c57124203b42d4a9229ee0cf5a404a164b534b5eed63d8da31649ce1067a3deabee246038d0aa8b5b6304c1ca89e571f39ac9546e005ede')
prepare() {
- cd "$pkgname-$pkgver"
+ cd "$pkgbase-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+ mkdir -p completions
}
build() {
- cd "$pkgname-$pkgver"
+ cd "$pkgbase-$pkgver"
cargo build --frozen --release --features notmuch-backend
+ local _completion="target/release/$pkgbase completion"
+ $_completion bash > "completions/$pkgbase"
+ $_completion fish > "completions/$pkgbase.fish"
+ $_completion zsh > "completions/_$pkgbase"
}
check() {
- cd "$pkgname-$pkgver"
+ cd "$pkgbase-$pkgver"
cargo test --frozen --features notmuch-backend -- --skip "test_imap_backend"
}
package_himalaya() {
- cd "$pkgname-$pkgver"
+ cd "$pkgbase-$pkgver"
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
+ install -Dm 664 "completions/$pkgname" -t "$pkgdir/usr/share/bash-completion/completions/"
+ install -Dm 664 "completions/$pkgname.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/"
+ install -Dm 664 "completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions/"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 "assets/$pkgname.desktop" -t "$pkgdir/usr/share/applications"
More information about the arch-commits
mailing list