Package Details: lscolors-git r220.4d5aeed-1

Git Clone URL: https://aur.archlinux.org/lscolors-git.git (read-only)
Package Base: lscolors-git
Description: Colorize the output of the 'ls' shell command via LS_COLORS
Upstream URL: https://github.com/trapd00r/LS_COLORS
Licenses: PerlArtistic
Submitter: smls
Maintainer: smls
Last Packager: smls
Votes: 4
Popularity: 0.012115
First Submitted: 2016-03-10 18:04
Last Updated: 2016-06-10 17:26

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

maximbaz commented on 2018-01-26 16:52

Please add git to the makedepends, otherwise installation fails in chroot with: ==> ERROR: Cannot find the git package needed to handle git sources.

maximbaz commented on 2017-12-03 13:12

Hey @smls,

Could you please also pre-compute the LS_COLORS in the PKGBUILD? There is no need for users to re-evaluate dircolors over and over again, it just slows down the terminal startup time. It really makes sense to evaluate dircolors during installation and upgrades.

I imagine you could add something like this to the build() function:

dircolors -b /usr/share/LS_COLORS > /usr/share/LS_COLORS.dircolors

And add this to the package() function:

install -D LS_COLORS.dircolors       "$pkgdir"/usr/share/LS_COLORS.dircolors

In this case, users can simply do source /usr/share/LS_COLORS.dircolors instead of doing the eval ... in their .bashrc/.zshrc

smls commented on 2016-06-10 17:27

@zerophase
Fix now. Thanks for pointing this out.

zerophase commented on 2016-06-09 10:07

pkgver() needs to switch to the directory before running the command. like so,

cd $_repo
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)