blob: d366733881992a9b517f43fd81d2117164044b5b (
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-mediawiki-git
_reponame=mediawiki.kak
pkgver=r1.a3c1492
pkgrel=1
pkgdesc='MediaWiki syntax highlighting for Kakoune'
arch=(any)
url="https://github.com/Ordoviz/mediawiki.kak"
license=(Unlicense)
depends=(kakoune)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install="$pkgname.install"
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.asciidoc
install -Dm644 -t "$pkgdir/usr/share/kak/rc/filetype/" mediawiki.kak
}
|