[arch-commits] Commit in haskell-hls-eval-plugin/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon May 10 23:16:32 UTC 2021


    Date: Monday, May 10, 2021 @ 23:16:32
  Author: felixonmars
Revision: 929686

upgpkg: haskell-hls-eval-plugin 1.1.0.0-1

Modified:
  haskell-hls-eval-plugin/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-10 23:16:22 UTC (rev 929685)
+++ PKGBUILD	2021-05-10 23:16:32 UTC (rev 929686)
@@ -2,8 +2,8 @@
 
 _hkgname=hls-eval-plugin
 pkgname=haskell-hls-eval-plugin
-pkgver=1.0.0.0
-pkgrel=32
+pkgver=1.1.0.0
+pkgrel=1
 pkgdesc="Eval plugin for Haskell Language Server"
 url="https://github.com/haskell/haskell-language-server"
 license=("Apache")
@@ -14,18 +14,18 @@
          'haskell-megaparsec' 'haskell-parser-combinators' 'haskell-pretty-simple'
          'haskell-safe-exceptions' 'haskell-shake' 'haskell-temporary' 'haskell-unliftio'
          'haskell-unordered-containers')
-makedepends=('ghc' 'uusi')
+makedepends=('ghc' 'uusi' 'haskell-hls-test-utils' 'haskell-lsp-test')
 #source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
-source=("https://github.com/haskell/haskell-language-server/archive/ghcide-v1.1.0/haskell-language-server-ghcide-v1.1.0.tar.gz")
-sha256sums=('ec611943b46027488d85135eb61245ea7cbd892ed9825b1456a4b74e0eb5a713')
+source=("https://github.com/haskell/haskell-language-server/archive/1.1.0/haskell-language-server-1.1.0.tar.gz")
+sha512sums=('05f724ec6209a4c30e260b8e9f945c5bc58be6b98458ea11ba3b297fa74fecbec37dc292d9aeda2d6dd5a8f24c4125f6d20afbb35eeec6335c9ea7138ed89e52')
 
 prepare() {
-  cd haskell-language-server-ghcide-v1.1.0/plugins/$_hkgname
+  cd haskell-language-server-1.1.0/plugins/$_hkgname
   gen-setup
 }
 
 build() {
-  cd haskell-language-server-ghcide-v1.1.0/plugins/$_hkgname
+  cd haskell-language-server-1.1.0/plugins/$_hkgname
 
   runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
     --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
@@ -40,8 +40,14 @@
   sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
 }
 
+check() {
+  cd haskell-language-server-1.1.0/plugins/$_hkgname
+  # https://github.com/haskell/haskell-language-server/issues/1809
+  runhaskell Setup test --show-details=direct || echo "Tests failed"
+}
+
 package() {
-  cd haskell-language-server-ghcide-v1.1.0/plugins/$_hkgname
+  cd haskell-language-server-1.1.0/plugins/$_hkgname
 
   install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh
   install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh



More information about the arch-commits mailing list