[arch-commits] Commit in haskell-hadrian/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 26 18:11:53 UTC 2022


    Date: Friday, August 26, 2022 @ 18:11:53
  Author: felixonmars
Revision: 1283510

archrelease: copy trunk to community-staging-x86_64

Added:
  haskell-hadrian/repos/community-staging-x86_64/
  haskell-hadrian/repos/community-staging-x86_64/PKGBUILD
    (from rev 1283509, haskell-hadrian/trunk/PKGBUILD)

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

Copied: haskell-hadrian/repos/community-staging-x86_64/PKGBUILD (from rev 1283509, haskell-hadrian/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-08-26 18:11:53 UTC (rev 1283510)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_hkgname=hadrian
+pkgname=haskell-hadrian
+pkgver=0.1.0.0
+_ghcver=9.2.3
+pkgrel=14
+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=$pkgname --datasubdir=haskell-hadrian --enable-tests \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
+    --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