-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |