diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c048ed5f9f7b --- /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" +} |