nimlangserver-git/PKGBUILD
2023-05-20 16:31:51 +02:00

43 lines
1.0 KiB
Bash

# Maintainer: RealStickman <mrc+aur _a_ frm01 _d_ net>
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}"
}