summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLennard Hofmann2020-11-17 18:47:00 +0100
committerLennard Hofmann2020-11-17 18:48:32 +0100
commitf29403c7ccf1ed847aa917f57f11622e94d707be (patch)
tree4655a08c2195f23438339b2ede2fc5a4ed996389 /PKGBUILD
downloadaur-f29403c7ccf1ed847aa917f57f11622e94d707be.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d36673388199
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}