[arch-commits] Commit in (4 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 12 18:00:57 UTC 2022


    Date: Friday, August 12, 2022 @ 18:00:57
  Author: felixonmars
Revision: 1265623

addpkg: haskell-hadrian 0.1.0.0-1

Added:
  haskell-hadrian/
  haskell-hadrian/repos/
  haskell-hadrian/trunk/
  haskell-hadrian/trunk/PKGBUILD

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

Added: haskell-hadrian/trunk/PKGBUILD
===================================================================
--- haskell-hadrian/trunk/PKGBUILD	                        (rev 0)
+++ haskell-hadrian/trunk/PKGBUILD	2022-08-12 18:00:57 UTC (rev 1265623)
@@ -0,0 +1,38 @@
+# This file was generated by https://github.com/berberman/arch-hs, please check it manually.
+# Maintainer: Your Name <youremail at domain.com>
+
+_hkgname=hadrian
+pkgname=haskell-hadrian
+pkgver=0.1.0.0
+_ghcver=9.2.3
+pkgrel=1
+pkgdesc="GHC build system"
+url="https://gitlab.haskell.org/ghc/ghc"
+license=("BSD")
+arch=('x86_64')
+depends=('ghc-libs' 'haskell-quickcheck' 'haskell-extra' 'haskell-shake'
+         'haskell-unordered-containers')
+makedepends=('ghc')
+source=("https://downloads.haskell.org/~ghc/$_ghcver/ghc-${_ghcver}-src.tar.xz")
+sha256sums=('50ecdc2bef013e518f9a62a15245d7db0e4409d737c43b1cea7306fd82e1669e')
+
+build() {
+  cd ghc-$_ghcver/hadrian
+
+  runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
+    --prefix=/usr --docdir=/usr/share/doc/$pkgname --datasubdir=haskell-hadrian --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid \
+    --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
+    --ghc-option='-pie' \
+    -fthreaded
+
+  runhaskell Setup build $MAKEFLAGS
+}
+
+package() {
+  cd ghc-$_ghcver/hadrian
+
+  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