[arch-commits] Commit in exa/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Sun Nov 21 13:54:43 UTC 2021
Date: Sunday, November 21, 2021 @ 13:54:43
Author: dvzrv
Revision: 1052992
archrelease: copy trunk to community-staging-x86_64
Added:
exa/repos/community-staging-x86_64/
exa/repos/community-staging-x86_64/PKGBUILD
(from rev 1052991, exa/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: exa/repos/community-staging-x86_64/PKGBUILD (from rev 1052991, exa/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-11-21 13:54:43 UTC (rev 1052992)
@@ -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=4
+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