diff --git a/srcpkgs/expert/template b/srcpkgs/expert/template new file mode 100644 index 00000000000000..f5c31c8f54fb9a --- /dev/null +++ b/srcpkgs/expert/template @@ -0,0 +1,31 @@ +# Template file for 'expert' +pkgname=expert +version=0.1.4 +revision=1 +build_style=fetch +archs="x86_64 aarch64" +short_desc="Official Elixir Language Server Protocol implementation" +maintainer="velrest+void-packages@gmail.com" +license="Apache-2.0" +homepage="https://expert-lsp.org/" + +case "$XBPS_TARGET_MACHINE" in +x86_64) + distfiles="https://github.com/expert-lsp/expert/releases/download/v${version}/expert_linux_amd64" + checksum="3c80e8b4b1428d6e87fba29056fd6ac7c52ea9edc2344f2c4388a318d131d361" + _bin="expert_linux_amd64" + ;; +aarch64) + distfiles="https://github.com/expert-lsp/expert/releases/download/v${version}/expert_linux_arm64" + checksum="128f0eb2b477892fe1cc0567e996f8674ef2d36809541952a2bf1375c9d178c4" + _bin="expert_linux_arm64" + ;; +esac + +do_check() { + ./${_bin} --version +} + +do_install() { + vbin ${_bin} expert +}