Date: Wednesday, October 19, 2022 @ 08:55:52
  Author: alerque
Revision: 1332842

upgpkg: himalaya 0.6.1-1

Modified:
  himalaya/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++------------------------
 1 file changed, 14 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-19 08:52:15 UTC (rev 1332841)
+++ PKGBUILD    2022-10-19 08:55:52 UTC (rev 1332842)
@@ -1,9 +1,8 @@
 # Maintainer: Orhun Parmaksız <or...@archlinux.org>
 # Maintainer: Caleb Maclennan <ca...@alerque.com>
 
-pkgbase=himalaya
-pkgname=('himalaya' 'vim-himalaya')
-pkgver=0.5.10
+pkgname=himalaya
+pkgver=0.6.1
 pkgrel=1
 pkgdesc="A CLI email client"
 arch=('x86_64')
@@ -11,31 +10,33 @@
 license=('BSD')
 depends=('gcc-libs' 'notmuch' 'openssl')
 makedepends=('cargo')
-source=("$pkgbase-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('0180ad71499109be65554a8176bffbad5c63f092b88b80bb8e82426dbc397c23f271ef4cc05fa42338a4671aca50b5ba9fd8eef7e78eef04533e7a35ee925550')
+source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('ffcf4e487b4a20a573b336775e727ce7124e2a0b9027709aa8c3a1d192d27d40a05b37330f9954958a6854481b0f7e9430d4daf66b164884a5532eec6f34ce78')
 
 prepare() {
-  cd "$pkgbase-$pkgver"
+  cd "$pkgname-$pkgver"
+  # Repair broken lockfile in 0.6.1: 
https://github.com/soywod/himalaya/issues/417
+  cargo update
   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
   mkdir -p completions
 }
 
 build() {
-  cd "$pkgbase-$pkgver"
+  cd "$pkgname-$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"
+  local _completion="target/release/$pkgname completion"
+  $_completion bash > "completions/$pkgname"
+  $_completion fish > "completions/$pkgname.fish"
+  $_completion zsh  > "completions/_$pkgname"
 }
 
 check() {
-  cd "$pkgbase-$pkgver"
+  cd "$pkgname-$pkgver"
   cargo test --frozen --features notmuch-backend -- --skip "test_imap_backend"
 }
 
 package_himalaya() {
-  cd "$pkgbase-$pkgver"
+  cd "$pkgname-$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/"
@@ -45,15 +46,4 @@
   install -Dm 644 "assets/$pkgname.desktop" -t "$pkgdir/usr/share/applications"
 }
 
-package_vim-himalaya() {
-  depends=('vim-plugin-runtime' 'himalaya')
-  pkgdesc+=' - Vim UI plugin'
-
-  cd "$pkgbase-$pkgver/vim/"
-  find autoload doc ftplugin lua plugin syntax \
-    -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/vim/vimfiles/{}" \;
-  install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
-  install -Dm 644 ../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
-}
-
 # vim:set ts=2 sw=2 et:

Reply via email to