Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upd(eza-git): 0.12.0 -> 0.13.0 #4566

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
Loading