summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 540eef1b41b766b6fa5abc0ac47fbb00b67af9f8 (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=203.8e8e822
pkgrel=1
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"
}