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

Kpcyrd kpcyrd at gemini.archlinux.org
Mon Sep 20 00:48:00 UTC 2021


    Date: Monday, September 20, 2021 @ 00:47:59
  Author: kpcyrd
Revision: 1018041

archrelease: copy trunk to community-testing-x86_64

Added:
  exa/repos/community-testing-x86_64/PKGBUILD
    (from rev 1018040, exa/trunk/PKGBUILD)
Deleted:
  exa/repos/community-testing-x86_64/PKGBUILD

----------+
 PKGBUILD |   82 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 44 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-20 00:47:49 UTC (rev 1018040)
+++ PKGBUILD	2021-09-20 00:47:59 UTC (rev 1018041)
@@ -1,38 +0,0 @@
-# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
-# Maintainer: kpcyrd <kpcyrd at archlinux.org>
-# Contributor: Lucas Raab <tuftedocelot at fastmail.fm>
-
-pkgname=exa
-pkgver=0.10.1
-pkgrel=2
-pkgdesc='ls replacement'
-arch=(x86_64)
-url='https://the.exa.website/'
-license=(MIT)
-depends=(libgit2)
-makedepends=(cargo git pandoc)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz")
-b2sums=('07f489fc0f3a755ea4ac6374e6ebd7b17d8d4fc6de92e695ea9b2868bcbca9c6f2788ec11329d0051abc2ffb8d1746898bdcef8a1d18ba9d67c94a627d30b6e2')
-
-build() {
-  cd $pkgname-$pkgver
-  cargo build --release
-  pandoc --standalone -f markdown -t man man/exa.1.md > exa.1
-  pandoc --standalone -f markdown -t man man/exa_colors.5.md > exa_colors.5
-}
-
-package() {
-  cd $pkgname-$pkgver
-  cargo install --path . --root "$pkgdir"/usr
-  rm -f "$pkgdir"/usr/.crates*
-  install -Dm644 completions/completions.bash \
-    "$pkgdir/usr/share/bash-completion/completions/$pkgname"
-  install -Dm644 completions/completions.zsh \
-    "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
-  install -Dm644 completions/completions.fish \
-    "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
-  install -Dm644 LICEN?E \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  install -Dm644 exa.1 "$pkgdir/usr/share/man/man1/exa.1"
-  install -Dm644 exa_colors.5 "$pkgdir/usr/share/man/man5/exa_colors.5"
-}

Copied: exa/repos/community-testing-x86_64/PKGBUILD (from rev 1018040, exa/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-20 00:47:59 UTC (rev 1018041)
@@ -0,0 +1,44 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Maintainer: kpcyrd <kpcyrd at archlinux.org>
+# Contributor: Lucas Raab <tuftedocelot at fastmail.fm>
+
+pkgname=exa
+pkgver=0.10.1
+pkgrel=3
+pkgdesc='ls replacement'
+arch=(x86_64)
+url='https://the.exa.website/'
+license=(MIT)
+depends=(libgit2.so)
+makedepends=(cargo git pandoc)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ogham/exa/archive/v$pkgver.tar.gz")
+b2sums=('07f489fc0f3a755ea4ac6374e6ebd7b17d8d4fc6de92e695ea9b2868bcbca9c6f2788ec11329d0051abc2ffb8d1746898bdcef8a1d18ba9d67c94a627d30b6e2')
+
+prepare() {
+  cd "${pkgname}-${pkgver}"
+  # Fix outdated Cargo.lock
+  sed -i 's/version = "0.11.0-pre"/version = "0.10.1"/' Cargo.lock
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd $pkgname-$pkgver
+  cargo build --frozen --release
+  pandoc --standalone -f markdown -t man man/exa.1.md > exa.1
+  pandoc --standalone -f markdown -t man man/exa_colors.5.md > exa_colors.5
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm755 target/release/exa -t "$pkgdir/usr/bin"
+  install -Dm644 completions/completions.bash \
+    "$pkgdir/usr/share/bash-completion/completions/$pkgname"
+  install -Dm644 completions/completions.zsh \
+    "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+  install -Dm644 completions/completions.fish \
+    "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname.fish"
+  install -Dm644 LICEN?E \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 exa.1 "$pkgdir/usr/share/man/man1/exa.1"
+  install -Dm644 exa_colors.5 "$pkgdir/usr/share/man/man5/exa_colors.5"
+}



More information about the arch-commits mailing list