[arch-commits] Commit in bat/trunk (PKGBUILD)

Alexander Rødseth arodseth at gemini.archlinux.org
Wed Jan 26 11:30:14 UTC 2022


    Date: Wednesday, January 26, 2022 @ 11:30:14
  Author: arodseth
Revision: 1115667

upgpkg: bat 0.19.0-1

Modified:
  bat/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-26 11:23:31 UTC (rev 1115666)
+++ PKGBUILD	2022-01-26 11:30:14 UTC (rev 1115667)
@@ -2,22 +2,37 @@
 # Contributor: Wesley Moore <wes at wezm.net>
 
 pkgname=bat
-pkgver=0.18.3
+pkgver=0.19.0
 pkgrel=1
 pkgdesc='Cat clone with syntax highlighting and git integration'
 arch=(x86_64)
 url='https://github.com/sharkdp/bat'
 license=(APACHE MIT)
+depends=(gcc-libs libgit2 oniguruma)
 makedepends=(clang cmake git rust)
-source=("git+$url#commit=b146958ecbb8c8c926159509ca7fb32a8573f897") # tag: v0.18.3
+options=(!lto)
+source=("git+$url#commit=59a8f58be780ba9ba04eb4791b6bf5ca14e99e99") # tag: v0.19.0
 b2sums=('SKIP')
 
+prepare() {
+  cargo fetch \
+    --locked \
+    --manifest-path "$srcdir/$pkgname/Cargo.toml"
+}
+
 build() {
   cargo build \
+    --locked \
     --manifest-path "$srcdir/$pkgname/Cargo.toml" \
     --release
 }
 
+check() {
+  cargo test \
+    --locked \
+    --manifest-path "$srcdir/$pkgname/Cargo.toml"
+}
+
 package() {
   install -Dm755 $pkgname/target/release/$pkgname "$pkgdir/usr/bin/$pkgname"
 
@@ -29,15 +44,15 @@
 
   cd $pkgname/target/release/build
 
-  # Package the man page
+  # Find and package the man page (because cargo --out-dir is too new)
   find . -name bat.1 -type f -exec install -Dm644 {} \
     "$pkgdir/usr/share/man/man1/bat.1" \;
 
-  # Package the zsh completion file (not in zsh-completions yet)
+  # Find and package the zsh completion file (not in zsh-completions yet)
   find . -name bat.zsh -type f -exec install -Dm644 {} \
     "$pkgdir/usr/share/zsh/site-functions/_bat" \;
 
-  # Package the fish completion
+  # Find and package the fish completion file
   find . -name bat.fish -type f -exec install -Dm644 {} \
     "$pkgdir/usr/share/fish/vendor_completions.d/bat.fish" \;
 }



More information about the arch-commits mailing list