summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authort0nyandre2018-03-23 18:22:48 +0100
committert0nyandre2018-03-23 18:22:48 +0100
commite3f316874d103e06724a812683c5948f82b148e3 (patch)
tree43cda51922effed03fb3635a090aa76fb3596c10
downloadaur-e3f316874d103e06724a812683c5948f82b148e3.tar.gz
v0.7.1
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5154b83e7ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = scry-git
+ pkgdesc = Scry is a code analysis server for Crystal.
+ pkgver = 129.2e988b7
+ pkgrel = 1
+ url = https://github.com/crystal-lang-tools/scry
+ arch = x86_64
+ license = MIT
+ depends = git
+ depends = crystal
+ source = git+https://github.com/crystal-lang-tools/scry
+ sha256sums = SKIP
+
+pkgname = scry-git
+
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"
+}