Date: Monday, March 6, 2023 @ 19:08:35 Author: felixonmars Revision: 1416098
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 1416096, haskell-hadrian/trunk/PKGBUILD) ----------+ PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) Copied: haskell-hadrian/repos/community-staging-x86_64/PKGBUILD (from rev 1416096, haskell-hadrian/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2023-03-06 19:08:35 UTC (rev 1416098) @@ -0,0 +1,37 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +_hkgname=hadrian +pkgname=haskell-hadrian +pkgver=0.1.0.0 +_ghcver=9.2.3 +pkgrel=69 +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 +}