Date: Sunday, April 30, 2023 @ 14:28:56
Author: felixonmars
Revision: 1455380
archrelease: copy trunk to community-staging-x86_64
Added:
haskell-hls-plugin-api/repos/community-staging-x86_64/
haskell-hls-plugin-api/repos/community-staging-x86_64/PKGBUILD
(from rev 1455379, haskell-hls-plugin-api/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: haskell-hls-plugin-api/repos/community-staging-x86_64/PKGBUILD (from
rev 1455379, haskell-hls-plugin-api/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-30 14:28:56 UTC (rev 1455380)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_hkgname=hls-plugin-api
+pkgname=haskell-hls-plugin-api
+pkgver=1.6.0.0
+pkgrel=9
+pkgdesc="Haskell Language Server API for plugin communication"
+url="https://github.com/haskell/haskell-language-server/hls-plugin-api"
+license=("Apache")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-diff' 'haskell-aeson' 'haskell-data-default'
'haskell-dependent-map'
+ 'haskell-dependent-sum' 'haskell-dlist' 'haskell-extra' 'haskell-ghc'
'haskell-hashable'
+ 'haskell-hls-graph' 'haskell-hw-fingertree' 'haskell-lens'
'haskell-lens-aeson'
+ 'haskell-lsp' 'haskell-megaparsec' 'haskell-optparse-applicative'
'haskell-opentelemetry'
+ 'haskell-regex-tdfa' 'haskell-unordered-containers')
+makedepends=('ghc' 'uusi' 'haskell-lsp-types' 'haskell-tasty'
'haskell-tasty-hunit'
+ 'haskell-tasty-quickcheck' 'haskell-tasty-rerun')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz")
+sha512sums=('016b2799b42c44efb45d005526e0cfcd8e606fc8f886d681e83bf53ecae02f4e1d3664f4d8c2b7b1711038b1188994ee0c0b94402ed4660633b647247b53e22e')
+
+prepare() {
+ cd $_hkgname-$pkgver
+ gen-setup
+}
+
+build() {
+ cd $_hkgname-$pkgver
+
+ runhaskell Setup configure -O --enable-shared --enable-executable-dynamic
--disable-library-vanilla \
+ --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=$pkgname
--enable-tests \
+ --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid
--ghc-option=-fllvm \
+ --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 $_hkgname-$pkgver
+ runhaskell Setup test --show-details=direct
+}
+
+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
+}