diff --git a/Arch/fennel-language-server/PKGBUILD b/Arch/fennel-language-server/PKGBUILD new file mode 100644 index 0000000..d9c8e6e --- /dev/null +++ b/Arch/fennel-language-server/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Alexander Rosenberg + +pkgname=fennel-language-server +pkgver=50 +pkgrel=1 +pkgdesc='Fennel language server protocol (LSP) support.' +url='https://github.com/rydesun/fennel-language-server' +arch=('x86_64') +license=('MIT') +depends=('rust') +source=('git+https://github.com/rydesun/fennel-language-server.git') +sha256sums=('SKIP') + +pkgver(){ + cd "$pkgname" + git rev-list --count HEAD +} + +build() { + cd "$pkgname" + cargo build --release +} + +package() { + install -Dt "$pkgdir/usr/bin/" "$pkgname/target/release/fennel-language-server" +}