summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 079c5421141622c19a2e47fd546a6cf93eab7575 (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
# Maintainer: f1reflyylmao <f1refly@airmail.cc>
# Contributor: Tony André Haugen (t0nyandre) <post@tonyand.re>

pkgname=scry-git
_gitname=scry
pkgver=186.e648e65
pkgrel=2
pkgdesc="Scry is a language server for Crystal."
arch=("x86_64")
url="https://github.com/crystal-lang-tools/$_gitname"
license=("MIT")
depends=("git" "crystal" "shards")
source=("git+https://github.com/crystal-lang-tools/$_gitname")
sha256sums=("SKIP")

pkgver() {
        cd $_gitname
        echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
        cd "$srcdir/$_gitname"
	shards install
        crystal build -p --verbose --no-debug -o $_gitname src/$_gitname.cr
}

package() {
        cd "$srcdir/$_gitname"
        install -D -m 0755 ./$_gitname "${pkgdir}/usr/bin/$_gitname"
        install -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/$_gitname/LICENSE"
}