blob: 8af151780b9d25cb458516359d22db20c4889c9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Zhang.j.k <zhangjk67 at gmail dian com>
pkgname=k-git
pkgver=r189.e2bfbaf
pkgrel=3
pkgdesc="a zsh script / plugin to make directory listings more readable, adding a bit of color and some git status information on files and directories."
arch=('any')
url="https://github.com/supercrabtree/k"
license=('unknown')
depends=('zsh')
makedepends=('git')
provides=("$pkgname")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/supercrabtree/k.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${pkgname%-git}"
install -vDm755 "${pkgname%-git}.sh" "k.plugin.zsh" -t "$pkgdir/usr/share/zsh/plugins/$pkgname"
# docs
install -vDm 644 readme.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
}
|