[arch-commits] Commit in dhall-lsp-server/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Oct 19 21:09:24 UTC 2020


    Date: Monday, October 19, 2020 @ 21:09:24
  Author: felixonmars
Revision: 727342

archrelease: copy trunk to community-staging-x86_64

Added:
  dhall-lsp-server/repos/community-staging-x86_64/
  dhall-lsp-server/repos/community-staging-x86_64/PKGBUILD
    (from rev 727341, dhall-lsp-server/trunk/PKGBUILD)

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

Copied: dhall-lsp-server/repos/community-staging-x86_64/PKGBUILD (from rev 727341, dhall-lsp-server/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-10-19 21:09:24 UTC (rev 727342)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=dhall-lsp-server
+pkgver=1.0.10
+pkgrel=25
+pkgdesc="Language Server Protocol (LSP) server for Dhall"
+url="https://github.com/dhall-lang/dhall-haskell/tree/master/dhall-lsp-server#readme"
+license=("custom:MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-aeson-pretty' 'haskell-data-default' 'dhall'
+         'dhall-json' 'haskell-lsp' 'haskell-hslogger' 'haskell-lens' 'haskell-lens-family-core'
+         'haskell-megaparsec' 'haskell-network-uri' 'haskell-optparse-applicative'
+         'haskell-prettyprinter' 'haskell-rope-utf16-splay' 'haskell-unordered-containers'
+         'haskell-uri-encode')
+makedepends=('ghc' 'haskell-quickcheck' 'haskell-doctest' 'haskell-lsp-types' 'haskell-lsp-test'
+             'haskell-tasty' 'haskell-tasty-hspec')
+source=("https://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
+        lsp-0.23.patch::https://github.com/dhall-lang/dhall-haskell/pull/2064.patch)
+sha512sums=('51dffa682e1b12f616f829651f774c0472efb49cb97f94b1499178943cc38d5a947a5d0d67f0270e80b9963bafcde074ad00304fde7bffaf8787af1e3a09eb9a'
+            'a5cb75667f57fc7ca1184d3c407192b56cea8b55a360360509ec2248a0cab39c22775e7589b004108c2bf9e19b63b7a78381679c587b3d2207d9b8405737c352')
+
+prepare() {
+  patch -d $pkgname-$pkgver -p2 < lsp-0.23.patch
+}
+
+build() {
+  cd $pkgname-$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 $MAKEFLAGS
+  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 $pkgname-$pkgver
+  LD_LIBRARY_PATH="$PWD/dist/build" PATH="$PWD/dist/build/dhall-lsp-server:$PATH" runhaskell Setup test
+}
+
+package() {
+  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
+  runhaskell Setup copy --destdir="$pkgdir"
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}



More information about the arch-commits mailing list