Skip to content

Commit

Permalink
upd(eza-git): 0.12.0 -> 0.13.0 (#4566)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elsie19 authored Sep 18, 2023
1 parent b05597d commit 6d292c9
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions packages/eza-git/eza-git.pacscript
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
name="eza-git"
gives="eza"
url="https://github.com/eza-community/eza.git"
pkgver="0.12.0"
pkgver="0.13.0"
homepage='https://the.exa.website/'
makedepends=("cargo" "libgit2-dev" "cmake" "rustc")
makedepends=("cargo" "libgit2-dev" "cmake" "rustc" "pandoc")
pkgdesc="A modern, maintained replacement for ls"
maintainer="Elsie19 <[email protected]>"
incompatible=('debian:*')
pkgver() {
git ls-remote "${url}" main | cut -f1 | cut -c1-8
}

prepare() {
mkdir -p target/man1 target/man5
}

build() {
cargo build -j"${NCPU}" --release
cargo build -j"${NCPU}" --release --locked
pandoc --standalone -f markdown -t man "man/eza.1.md" > target/man1/eza.1
pandoc --standalone -f markdown -t man "man/eza_colors.5.md" > target/man5/eza_colors.5
pandoc --standalone -f markdown -t man "man/eza_colors-explanation.5.md" > target/man5/eza_colors-explanation.5
}

package() {
# Install package
sudo install -Dm755 target/release/eza -t "${pkgdir}/usr/bin"
# Install completions
sudo install -Dm644 completions/bash/eza -t "${pkgdir}/usr/share/bash-completion/completions/"
sudo install -Dm644 completions/fish/eza.fish -t "${pkgdir}/usr/share/fish/vendor_completions.d/"
sudo install -Dm644 completions/zsh/_eza -t "${pkgdir}/usr/share/zsh/vendor-completions/"
# Install man pages
sudo install -Dm644 target/man1/* -t "${pkgdir}/usr/share/man/man1/"
sudo install -Dm644 target/man5/* -t "${pkgdir}/usr/share/man/man5/"
sudo install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${gives}/README.md"
sudo install -Dm644 "LICENCE" "${pkgdir}/usr/share/licenses/${gives}/LICENSE-MIT"
}

0 comments on commit 6d292c9

Please sign in to comment.