blob: 329cabf035cb2bd88ed0dc8cc26aba2e45a163eb (
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-replace-mode-git
_reponame=replace-mode.kak
pkgver=r2.10c5b87
pkgrel=1
pkgdesc='Replace mode for Kakoune'
arch=(any)
url="https://github.com/tomKPZ/$_reponame"
license=(MIT)
depends=(kakoune)
makedepends=(git)
install=$pkgname.install
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url")
sha256sums=('SKIP')
pkgver() {
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/licenses/$pkgname" LICENSE
install -Dm644 -t "$pkgdir/usr/share/kak/rc/addons" replace-mode.kak
}
|