[arch-commits] Commit in haskell-lsp-types/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed May 5 12:38:52 UTC 2021
Date: Wednesday, May 5, 2021 @ 12:38:52
Author: felixonmars
Revision: 927594
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-lsp-types/repos/community-staging-x86_64/
haskell-lsp-types/repos/community-staging-x86_64/PKGBUILD
(from rev 927593, haskell-lsp-types/trunk/PKGBUILD)
----------+
PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
Copied: haskell-lsp-types/repos/community-staging-x86_64/PKGBUILD (from rev 927593, haskell-lsp-types/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-05-05 12:38:52 UTC (rev 927594)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=lsp-types
+pkgname=haskell-lsp-types
+pkgver=1.1.0.0
+pkgrel=20
+pkgdesc="Haskell library for the Microsoft Language Server Protocol, data types"
+url="https://github.com/alanz/lsp"
+license=("MIT")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-data-default' 'haskell-dependent-sum'
+ 'haskell-dependent-sum-template' 'haskell-hashable' 'haskell-hslogger' 'haskell-lens'
+ 'haskell-network-uri' 'haskell-rope-utf16-splay' 'haskell-scientific' 'haskell-some'
+ 'haskell-temporary' 'haskell-unordered-containers')
+makedepends=('ghc')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha256sums=('a4f48e45e298d75635d5be816fc050d273f849d967f8654bd7b9a804396e93a6')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ sed -i '1i{-# LANGUAGE DataKinds #-}' src/Language/LSP/Types/Lens.hs
+}
+
+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 $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
+}
+
+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
+}
More information about the arch-commits
mailing list