summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 027b0eb99c8844bc0b35c0275977d565a274de1a (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: Lennard Hofmann <lennard dot hofmann at web dot de>
pkgname=kak-auto-pairs-git
pkgver=r116.cac6780
pkgrel=1
pkgdesc='Automatically inserts closing pairs in Kakoune'
arch=(any)
url="https://github.com/alexherbo2/auto-pairs.kak"
license=(Unlicense)
depends=(kakoune kakoune.cr)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=$pkgname.install
source=("git+$url")
sha256sums=('SKIP')

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

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