blob: 2d4cfb580cad5a2a2d64c9bdc8b38090695ab9ac (
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
27
28
|
# Maintainer: Lennard Hofmann <lennard dot hofmann at web dot de>
pkgname=kak-palette-git
_reponame=palette.kak
pkgver=r8.bbb179f
pkgrel=1
pkgdesc='Color preview in Kakoune'
arch=(any)
url="https://github.com/Ordoviz/$_reponame"
license=(Unlicense)
depends=(kakoune)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=$pkgname.install
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
# Git, no tags available
cd "$srcdir/$_reponame"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/$_reponame"
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
install -Dm644 -t "$pkgdir/usr/share/kak/rc/addons" palette.kak
}
|