summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a83f08393e6a57d4a83c340437920c09c1101fb2 (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
# Maintainer: ltdk <usr@ltdk.xyz>
pkgname=kak-case-git
pkgver=r11.6f15118
pkgrel=1
pkgdesc='Case convention conversion for Kakoune'
arch=(any)
url="https://gitlab.com/FlyingWombat/case.kak"
license=(custom)
depends=(kakoune)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url")
sha256sums=('SKIP')

pkgver() {
	# Git, no tags available
	cd "$srcdir/case.kak"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/case.kak"
	install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
	install -Dm644 -t "$pkgdir/usr/share/kak/rc/addons" rc/case.kak
}