summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authort0nyandre2018-03-23 18:22:48 +0100
committert0nyandre2018-03-23 18:22:48 +0100
commite3f316874d103e06724a812683c5948f82b148e3 (patch)
tree43cda51922effed03fb3635a090aa76fb3596c10 /PKGBUILD
downloadaur-e3f316874d103e06724a812683c5948f82b148e3.tar.gz
v0.7.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..60179c98097
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Tony André Haugen (t0nyandre) <post@tonyand.re>
+
+pkgname=scry-git
+_gitname=scry
+pkgver=129.2e988b7
+pkgrel=1
+pkgdesc="Scry is a code analysis server for Crystal."
+arch=("x86_64")
+url="https://github.com/crystal-lang-tools/$_gitname"
+license=("MIT")
+depends=("git" "crystal")
+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"
+ 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"
+}