From 318312848c263be45ec2277c8f838a8f6ccc1f9d Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sat, 20 May 2023 16:31:51 +0200 Subject: [PATCH] Initial WIP version --- .SRCINFO | 14 ++++++++++++++ .gitignore | 3 +++ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..105ac4c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = nimlangserver-git + pkgver = latest.r9.gf7b32fa + pkgrel = 1 + url = https://github.com/nim-lang/langserver + arch = x86_64 + license = MIT + makedepends = git + depends = nim>=1.0.0 + provides = nimlangserver + conflicts = nimlangserver + source = nimlangserver::git+https://github.com/nim-lang/langserver.git + sha256sums = SKIP + +pkgname = nimlangserver-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65dee26 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.zst +/nimlangserver/ +/src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2647d64 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: RealStickman + +pkgname=nimlangserver-git +pkgver=latest.r9.gf7b32fa +pkgrel=1 +pkgdesc="" +arch=('x86_64') +url="https://github.com/nim-lang/langserver" +license=('MIT') +depends=('nim>=1.0.0') +makedepends=('git') # pathutils to makedepends +# FIXME Blocker with missing pathutil library of nim (https://github.com/nim-lang/langserver/issues/22) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + # change into source + cd "$srcdir/${pkgname%-git}" + # compile program + nimble build +} + +#check() { + # change into source +# cd "$srcdir/${pkgname%-git}" + # run all tests +# nimble test +#} + +package() { + # create our target filestructure + mkdir -p "$pkgdir/usr/bin" + # copy executable + install -Dm755 "$srcdir/${pkgname%-git}/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}" +}