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

pkgname=scry-git
_gitname=scry
pkgver=200.77eefc1
pkgrel=3
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")
provides=("scry")
source=("git+$url")
sha256sums=("SKIP")

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

build() {
        cd "$srcdir/$_gitname"
	shards install
        shards build --production --release --no-debug --progress "${_gitname}"
}

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