summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennard Hofmann2021-03-08 17:57:40 +0100
committerLennard Hofmann2021-03-08 17:57:40 +0100
commit97aad7cc9f3cb23d9039a2eaf33281e71c4b96d0 (patch)
treeb56aa11952679f333d7dbfa9a18bafe394b2acd6
downloadaur-97aad7cc9f3cb23d9039a2eaf33281e71c4b96d0.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD37
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0df5e0b4288
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = kakoune.cr-git
+ pkgdesc = command-line tool for Kakoune
+ pkgver = r33.14367a5
+ pkgrel = 1
+ url = https://github.com/alexherbo2/kakoune.cr
+ arch = x86_64
+ license = Unlicense
+ makedepends = git
+ depends = crystal
+ depends = shards
+ depends = jq
+ optdepends = fzf: fzf integration
+ optdepends = bat: fzf integration
+ optdepends = fd: fzf integration
+ optdepends = ripgrep: fzf integration
+ provides = kakoune.cr
+ conflicts = kakoune.cr
+ source = git+https://github.com/alexherbo2/kakoune.cr
+ sha256sums = SKIP
+
+pkgname = kakoune.cr-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c048ed5f9f7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Lennard Hofmann <lennard dot hofmann at web dot de>
+pkgname=kakoune.cr-git
+_reponame=kakoune.cr
+pkgver=r33.14367a5
+pkgrel=1
+pkgdesc='command-line tool for Kakoune'
+arch=(x86_64)
+url="https://github.com/alexherbo2/kakoune.cr"
+license=(Unlicense)
+depends=(crystal shards jq)
+makedepends=(git)
+optdepends=('fzf: fzf integration'
+ 'bat: fzf integration'
+ 'fd: fzf integration'
+ 'ripgrep: fzf integration')
+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)"
+}
+
+build() {
+ cd "$srcdir/$_reponame"
+ make build
+}
+
+package() {
+ cd "$srcdir/$_reponame"
+ # 'make install' installs stuff into user's home directory so we do the packaging ourselfs
+ install -Dm755 -t "$pkgdir/usr/bin/" bin/kcr share/kcr/commands/*/kcr-*
+ install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ install -Dm644 share/kcr/init/kakoune.kak "$pkgdir/usr/share/kak/rc/addons/kakoune.cr.kak"
+}