summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa5179b9bdc91737440e3990f18038704b6acc09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=neovim-magic
pkgver=0.3.1
pkgrel=1
pkgdesc="Pluggable framework for using AI code assistance"
arch=('any')
url="https://github.com/jameshiew/nvim-magic"
license=('MIT')
groups=('neovim-plugins')
depends=('neovim>=0.5.0' 'curl' 'neovim-plenary' 'neovim-nui')
install=magic.install
changelog=CHANGELOG.md
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('ce12efbf05354914a0577840474b9725f1b7cba42f660ff93c333790cd674a00')

package() {
	cd "nvim-magic-$pkgver"
	find lua prompts -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
	find docs -type f -name '*.md' -exec install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" '{}' \+
	install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}