blob: 02562ca28fd137751d1fb4e2c9c75ec4dc119699 (
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-surround-git
_reponame=kakoune-surround
pkgver=r21.efe74c6
pkgrel=2
pkgdesc='Provides commands to add, change, and delete surrounder in Kakoune'
arch=(any)
url="https://github.com/h-youhei/$_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" surround.kak
}
|