summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorf1reflyylmao2021-03-23 21:21:27 +0100
committerf1reflyylmao2021-03-23 21:21:27 +0100
commitc40f919dda923dec963622002b16c67b5e305c3c (patch)
tree49d70f26d51d33e83ffd11a79caee7104b0d0a6d
parente307631641f651bc2820b978cfbaae810a4f3716 (diff)
downloadaur-c40f919dda923dec963622002b16c67b5e305c3c.tar.gz
updated version, made pkgbuild a bit better
-rw-r--r--PKGBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 079c5421141..b6dd8ef9cb8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,15 @@
pkgname=scry-git
_gitname=scry
-pkgver=186.e648e65
-pkgrel=2
+pkgver=200.77eefc1
+pkgrel=3
pkgdesc="Scry is a language server for Crystal."
arch=("x86_64")
-url="https://github.com/crystal-lang-tools/$_gitname"
+url="https://github.com/crystal-lang-tools/${_gitname}"
license=("MIT")
depends=("git" "crystal" "shards")
-source=("git+https://github.com/crystal-lang-tools/$_gitname")
+provides=("scry")
+source=("git+$url")
sha256sums=("SKIP")
pkgver() {
@@ -21,11 +22,11 @@ pkgver() {
build() {
cd "$srcdir/$_gitname"
shards install
- crystal build -p --verbose --no-debug -o $_gitname src/$_gitname.cr
+ shards build --production --release --no-debug --progress "${_gitname}"
}
package() {
cd "$srcdir/$_gitname"
- install -D -m 0755 ./$_gitname "${pkgdir}/usr/bin/$_gitname"
- install -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/$_gitname/LICENSE"
+ install -D -m 0755 "./bin/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"
+ install -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
}