Date: Sunday, February 12, 2023 @ 06:30:43
  Author: felixonmars
Revision: 1399910

addpkg: haskell-hls-refactor-plugin 1.0.0.0-0

Added:
  haskell-hls-refactor-plugin/
  haskell-hls-refactor-plugin/repos/
  haskell-hls-refactor-plugin/trunk/
  haskell-hls-refactor-plugin/trunk/PKGBUILD

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

Added: haskell-hls-refactor-plugin/trunk/PKGBUILD
===================================================================
--- haskell-hls-refactor-plugin/trunk/PKGBUILD                          (rev 0)
+++ haskell-hls-refactor-plugin/trunk/PKGBUILD  2023-02-12 06:30:43 UTC (rev 
1399910)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <[email protected]>
+
+_hkgname=hls-refactor-plugin
+pkgname=haskell-hls-refactor-plugin
+pkgver=1.0.0.0
+pkgrel=0
+pkgdesc="Exactprint refactorings for Haskell Language Server"
+url="https://github.com/haskell/haskell-language-server.git";
+license=("Apache")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-aeson' 'haskell-data-default' 'haskell-dlist' 
'haskell-extra'
+         'haskell-ghc' 'haskell-ghc-exactprint' 'haskell-ghcide' 
'haskell-hls-graph'
+         'haskell-hls-plugin-api' 'haskell-lens' 'haskell-lsp' 
'haskell-regex-tdfa'
+         'haskell-retrie' 'haskell-syb' 'haskell-text-rope' 
'haskell-unordered-containers')
+makedepends=('ghc' 'haskell-async' 'haskell-ghcide-test-utils' 
'haskell-hls-test-utils'
+             'haskell-lsp-test' 'haskell-lsp-types' 'haskell-network-uri'
+             'haskell-parser-combinators' 'haskell-shake' 'haskell-tasty'
+             'haskell-tasty-expected-failure' 'haskell-tasty-hunit' 
'haskell-tasty-rerun')
+source=("https://hackage.haskell.org/packages/archive/$_hkgname/$pkgver/$_hkgname-$pkgver.tar.gz";)
+sha256sums=('a1111065d7e351c624eb48cdcd83ee543899ce051db165dbc1aa398f9c2ac33e')
+
+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=-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"
+  rm -f "$pkgdir"/usr/share/doc/$pkgname/LICENSE
+}

Reply via email to