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

Felix Yan felixonmars at gemini.archlinux.org
Fri Sep 2 07:45:26 UTC 2022


    Date: Friday, September 2, 2022 @ 07:45:26
  Author: felixonmars
Revision: 1290653

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 1290652, haskell-hadrian/trunk/PKGBUILD)

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

Copied: haskell-hadrian/repos/community-staging-x86_64/PKGBUILD (from rev 1290652, haskell-hadrian/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-09-02 07:45:26 UTC (rev 1290653)
@@ -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=20
+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