Date: Monday, June 14, 2021 @ 17:18:05 Author: felixonmars Revision: 963490
upgpkg: haskell-language-server 1.2.0.0-1 Modified: haskell-language-server/trunk/PKGBUILD ----------+ PKGBUILD | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-06-14 17:14:44 UTC (rev 963489) +++ PKGBUILD 2021-06-14 17:18:05 UTC (rev 963490) @@ -1,9 +1,8 @@ # Maintainer: Felix Yan <[email protected]> -_hkgname=haskell-language-server pkgname=haskell-language-server -pkgver=1.1.0.0 -pkgrel=32 +pkgver=1.2.0.0 +pkgrel=1 pkgdesc="LSP server for GHC" url="https://github.com/haskell/haskell-language-server#readme" license=("Apache") @@ -10,30 +9,31 @@ arch=('x86_64') depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-async' 'haskell-base16-bytestring' 'haskell-cryptohash-sha1' 'haskell-data-default' - 'haskell-extra' 'haskell-floskell' 'haskell-fourmolu' 'haskell-fuzzy' 'haskell-ghc' - 'haskell-ghc-paths' 'haskell-ghcide' 'haskell-gitrev' 'haskell-hashable' 'haskell-hie-bios' - 'haskell-hiedb' 'haskell-hls-brittany-plugin' 'haskell-hls-class-plugin' - 'haskell-hls-eval-plugin' 'haskell-hls-explicit-imports-plugin' - 'haskell-hls-haddock-comments-plugin' 'haskell-hls-hlint-plugin' 'haskell-hls-plugin-api' + 'haskell-extra' 'haskell-ghc' 'haskell-ghc-api-compat' 'haskell-ghc-paths' 'haskell-gitrev' + 'haskell-hashable' 'haskell-hie-bios' 'haskell-hiedb' 'haskell-hls-brittany-plugin' + 'haskell-hls-class-plugin' 'haskell-hls-eval-plugin' 'haskell-hls-explicit-imports-plugin' + 'haskell-hls-floskell-plugin' 'haskell-hls-fourmolu-plugin' 'haskell-hls-graph' + 'haskell-hls-haddock-comments-plugin' 'haskell-hls-hlint-plugin' + 'haskell-hls-module-name-plugin' 'haskell-hls-ormolu-plugin' 'haskell-hls-plugin-api' + 'haskell-hls-pragmas-plugin' 'haskell-hls-refine-imports-plugin' 'haskell-hls-retrie-plugin' 'haskell-hls-splice-plugin' 'haskell-hls-stylish-haskell-plugin' 'haskell-hls-tactics-plugin' 'haskell-hslogger' 'haskell-lens' 'haskell-lsp' 'haskell-optparse-applicative' 'haskell-optparse-simple' - 'haskell-ormolu' 'haskell-regex-tdfa' 'haskell-safe-exceptions' 'haskell-shake' - 'haskell-sqlite-simple' 'haskell-temporary' 'haskell-unordered-containers') + 'haskell-regex-tdfa' 'haskell-safe-exceptions' 'haskell-sqlite-simple' 'haskell-temporary' + 'haskell-unordered-containers') makedepends=('ghc' 'uusi' 'haskell-hls-test-utils' 'haskell-hspec-expectations' 'haskell-lsp-test' 'haskell-lsp-types') checkdepends=('cabal-install') -#source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz") -source=("https://github.com/haskell/haskell-language-server/archive/1.1.0/haskell-language-server-1.1.0.tar.gz") -sha512sums=('05f724ec6209a4c30e260b8e9f945c5bc58be6b98458ea11ba3b297fa74fecbec37dc292d9aeda2d6dd5a8f24c4125f6d20afbb35eeec6335c9ea7138ed89e52') +source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('c8ca57796be15796e7334e20ef3a983b4a77335d41084add87d102746e893fc80c43ee6c761d04d52afad846d4744007a0aec8d70a7e12e4576f847a684726ab') prepare() { - cd haskell-language-server-1.1.0 + cd $pkgname-$pkgver find test/testdata -name \*.cabal -exec uusi --add-options-all=-dynamic {} \; } build() { - cd haskell-language-server-1.1.0 + cd $pkgname-$pkgver runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \ --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \ @@ -49,12 +49,12 @@ } check() { - cd haskell-language-server-1.1.0 + cd $pkgname-$pkgver PATH="$PWD/dist/build/haskell-language-server:$PWD/dist/build/haskell-language-server-wrapper:$PATH" LD_LIBRARY_PATH="$PWD/dist/build" runhaskell Setup test || echo "Tests failed" } package() { - cd haskell-language-server-1.1.0 + cd $pkgname-$pkgver install -D -m744 register.sh "$pkgdir"/usr/share/haskell/register/$pkgname.sh install -D -m744 unregister.sh "$pkgdir"/usr/share/haskell/unregister/$pkgname.sh
