[arch-commits] Commit in haskell-lsp-test/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jan 14 10:52:52 UTC 2021


    Date: Thursday, January 14, 2021 @ 10:52:52
  Author: felixonmars
Revision: 820771

upgpkg: haskell-lsp-test 0.11.0.7-71: rebuild with haskell-lsp 0.24.0.0, haskell-lsp-types 0.24.0.0

Modified:
  haskell-lsp-test/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-14 07:21:31 UTC (rev 820770)
+++ PKGBUILD	2021-01-14 10:52:52 UTC (rev 820771)
@@ -3,7 +3,7 @@
 _hkgname=lsp-test
 pkgname=haskell-lsp-test
 pkgver=0.11.0.7
-pkgrel=70
+pkgrel=71
 pkgdesc="Functional test framework for LSP servers"
 url="https://github.com/bubba/lsp-test#readme"
 license=("BSD")
@@ -12,7 +12,7 @@
          'haskell-ansi-terminal' 'haskell-async' 'haskell-conduit' 'haskell-conduit-parse'
          'haskell-data-default' 'haskell-lsp' 'haskell-lens' 'haskell-parser-combinators'
          'haskell-unordered-containers')
-makedepends=('ghc' 'haskell-hspec')
+makedepends=('ghc' 'uusi' 'haskell-hspec')
 # Hackage source is missing test data
 source=("https://github.com/bubba/lsp-test/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('bc42e9d5a31a81501b324f5c5c91d00512f85e6a1c867ca17f619565c732dacdd7a058b265819f6f045b84534450e785d88d038a91304ab9310680e46e0bf0ea')
@@ -19,8 +19,13 @@
 
 prepare() {
   cd $_hkgname-$pkgver
-  echo -e "import Distribution.Simple\nmain = defaultMain" > Setup.hs
+  gen-setup
+  uusi -u haskell-lsp $_hkgname.cabal
+
   sed -i 's|dist-newstyle|dist/build/dummy-server|' test/Test.hs
+
+  # haskell-lsp 0.24.0.0
+  sed -i 's/"deleteThis" Nothing))/"deleteThis" Nothing)) Nothing Nothing/' test/dummy-server/Main.hs
 }
 
 build() {



More information about the arch-commits mailing list