blob: 7d8106cd9c2fa7e377fb3f5bfdf7521ead769785 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: RealStickman <mrc+aur _a_ frm01 _d_ net>
pkgname=nimlangserver-git
pkgver=v1.2.0.r11.g97ffd6d
pkgrel=1
pkgdesc=""
arch=('x86_64')
url="https://github.com/nim-lang/langserver"
license=('MIT')
depends=('nim>=2.0.0')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+$url.git"
"nimble-lock.patch")
sha256sums=('SKIP'
'9478a7b7bf1b8a6cd6c79df500e8ce52518fb400ce0a4da586aef7120f0a86a4')
prepare() {
# patching
cd "$srcdir/${pkgname%-git}"
patch --strip=2 < ../nimble-lock.patch # use system nim version
# download packages.json file
nimble refresh
}
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}"
}
|