[arch-commits] Commit in (7 files)

Felix Yan felixonmars at archlinux.org
Sat Mar 13 16:33:27 UTC 2021


    Date: Saturday, March 13, 2021 @ 16:33:26
  Author: felixonmars
Revision: 890358

move old lsp 0.x package to lsp0 namespace

Added:
  haskell-lsp/
  haskell-lsp/repos/
  haskell-lsp/trunk/
  haskell-lsp/trunk/PKGBUILD
  haskell-lsp0/
Modified:
  haskell-lsp0/trunk/PKGBUILD
Deleted:
  haskell-lsp/

-----------------------------+
 haskell-lsp/trunk/PKGBUILD  |   49 ++++++++++++++++++++++++++++++++++++++++++
 haskell-lsp0/trunk/PKGBUILD |    6 ++---
 2 files changed, 52 insertions(+), 3 deletions(-)

Added: haskell-lsp/trunk/PKGBUILD
===================================================================
--- haskell-lsp/trunk/PKGBUILD	                        (rev 0)
+++ haskell-lsp/trunk/PKGBUILD	2021-03-13 16:33:26 UTC (rev 890358)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lsp
+pkgname=haskell-lsp
+pkgver=1.1.1.0
+pkgrel=1
+pkgdesc="Haskell library for the Microsoft Language Server Protocol"
+url="https://github.com/alanz/lsp"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-async' 'haskell-attoparsec' 'haskell-data-default'
+         'haskell-dependent-map' 'haskell-hashable' 'haskell-hslogger' 'haskell-lens'
+         'haskell-lsp-types' 'haskell-network-uri' 'haskell-random' 'haskell-scientific'
+         'haskell-sorted-list' 'haskell-unliftio-core' 'haskell-unordered-containers' 'haskell-uuid')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-hspec' 'haskell-hspec-discover'
+             'haskell-quickcheck-instances' 'haskell-rope-utf16-splay')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('3941236a681b1b31d5e99798fd0fc7bff8428254cad666f108eaf11a36f9cd12')
+
+build() {
+  cd $_hkgname-$pkgver
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie'
+
+  runhaskell Setup build
+  runhaskell Setup register --gen-script
+  runhaskell Setup unregister --gen-script
+  sed -i -r -e "s|ghc-pkg.*update[^ ]* |&'--force' |" register.sh
+  sed -i -r -e "s|ghc-pkg.*unregister[^ ]* |&'--force' |" unregister.sh
+}
+
+check() {
+  cd $_hkgname-$pkgver
+  runhaskell Setup test
+}
+
+package() {
+  cd $_hkgname-$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
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Modified: haskell-lsp0/trunk/PKGBUILD
===================================================================
--- haskell-lsp/trunk/PKGBUILD	2021-03-13 16:32:15 UTC (rev 890357)
+++ haskell-lsp0/trunk/PKGBUILD	2021-03-13 16:33:26 UTC (rev 890358)
@@ -1,10 +1,10 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 _hkgname=haskell-lsp
-pkgname=haskell-lsp
+pkgname=haskell-lsp0
 pkgver=0.24.0.0
-pkgrel=36
-pkgdesc="Haskell library for the Microsoft Language Server Protocol"
+pkgrel=1
+pkgdesc="Haskell library for the Microsoft Language Server Protocol (Legacy 0.x version)"
 url="https://github.com/alanz/haskell-lsp"
 license=("MIT")
 arch=('x86_64')



More information about the arch-commits mailing list