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

George Rawlinson grawlinson at gemini.archlinux.org
Tue Aug 17 01:05:54 UTC 2021


    Date: Tuesday, August 17, 2021 @ 01:05:53
  Author: grawlinson
Revision: 1001102

archrelease: copy trunk to community-x86_64

Added:
  zoxide/repos/community-x86_64/
  zoxide/repos/community-x86_64/PKGBUILD
    (from rev 1001101, zoxide/trunk/PKGBUILD)

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

Copied: zoxide/repos/community-x86_64/PKGBUILD (from rev 1001101, zoxide/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-08-17 01:05:53 UTC (rev 1001102)
@@ -0,0 +1,51 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: desbma
+
+pkgname=zoxide
+pkgver=0.7.4
+pkgrel=2
+pkgdesc="A smarter cd command for your terminal"
+arch=('x86_64')
+url="https://github.com/ajeetdsouza/zoxide"
+license=('MIT')
+makedepends=('rust')
+optdepends=(
+  'fzf: for interactive selection'
+  'bash-completion: for shell auto-completion'
+  'fish: for shell auto-completion'
+  'zsh: for shell auto-completion'
+)
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+b2sums=('4aab73e81fae7f749e57fd5ab7e77f5819650b8cc112885ae7fd97d5ddadf306247e0f965875d7369280a32a40d00ac9e1f34189096ad166d7fe33bcccfe663f')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  cargo build --frozen --release --all-features
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+
+  # man pages
+  install -vDm644 -t "$pkgdir/usr/share/man/man1" man/*.1
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+  # shell auto-completions
+  cd contrib/completions
+  install -vDm644 -t "$pkgdir/usr/share/zsh/site-functions" _zoxide
+  install -vDm644 -t "$pkgdir/usr/share/fish/vendor_completions.d" zoxide.fish
+  install -vDm644 zoxide.bash "$pkgdir/usr/share/bash-completion/completions/zoxide"
+}



More information about the arch-commits mailing list