diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 9 insertions, 13 deletions
@@ -1,7 +1,7 @@ pkgbase = metals pkgdesc = Language Server For Scala pkgver = 0.5.0 - pkgrel = 3 + pkgrel = 4 url = https://scalameta.org/metals/ arch = any license = Apache @@ -64,4 +64,3 @@ pkgbase = metals sha512sums = b4a4eb0bde4045de411b639e16cf41b95e3e50d8950c3a48008d42b60751541e4957c463f4f817320f15488c702d52fb977d3fe63d8832d55f259907f7e0afcf pkgname = metals - @@ -6,7 +6,7 @@ # Maintainer: David Strawn <isomarcte a__t gmail d__o__t c__o__m> pkgname='metals' pkgver='0.5.0' -pkgrel=3 +pkgrel=4 epoch= pkgdesc='Language Server For Scala' url='https://scalameta.org/metals/' @@ -71,7 +71,7 @@ sha512sums=('21d6bd645ad35b749374b76015e7019375e2723b4e4e1b25dc0a983591f475c5466 validpgpkeys=() prepare() { - cd "$pkgname-$pkgver" + cd "$pkgname-$pkgver" # The build currently does not set the correct version unless # built from git with the environment variable CI set. See @@ -85,7 +85,7 @@ build() { local -r _SBT_DIR="./.sbt" local -r _SBT_IVY="./.ivy2" - cd "$pkgname-$pkgver" + cd "$pkgname-$pkgver" # When run with some AUR helpers, in particular `yay`, for a # reason I do not understand `sbt` will regularly attempt to @@ -103,18 +103,18 @@ check() { local -r _SBT_DIR="./.sbt" local -r _SBT_IVY="./.ivy2" - cd "$pkgname-$pkgver" + cd "$pkgname-$pkgver" ## Tests on most recent release currently fail # sbt test } package() { - export COURSIER_CACHE='../.cache/coursier/v1' + export COURSIER_CACHE='./.cache/coursier/v1' export CI="TRUE" # Needed so the build will not think it is a SNAPSHOT ## Constants ## - local -r _SBT_DIR='../.sbt' - local -r _SBT_IVY='../.ivy2' + local -r _SBT_DIR='./.sbt' + local -r _SBT_IVY='./.ivy2' local -r _TARGET_DIR='/usr/share/java/metals' local -r _DEST_DIR="${pkgdir}${_TARGET_DIR}" local -r _BIN_DEST_DIR="${_DEST_DIR}/bin" @@ -124,11 +124,8 @@ package() { local -r _TEMP_FILE="$(mktemp)" local -r _LAUNCHER_SCRIPTS=('metals-client.sh' 'metals-emacs.sh' 'metals-vim.sh' 'metals-vscode.sh' 'metals-sublime.sh') - ## Variables ## - local LIB_NAME - ## Change Into Correct Directory ## - pushd "$pkgname-$pkgver" + pushd "$pkgname-$pkgver" ## Create lib And bin Directories ## install -d "$_LIB_DEST_DIR" |