diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:04:17 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:04:17 +0100 |
commit | 871b2b573f01c1b3176a0f65458b3d281b41c437 (patch) | |
tree | 1311c682a9307026b039de9ba0e93bd22e35e2f5 /skip/ghc/ghc.xibuild | |
parent | dfcdf333c80ae1d7171f6fa145fd87fecb8c5b73 (diff) |
added pandoc and qt5
Diffstat (limited to 'skip/ghc/ghc.xibuild')
-rw-r--r-- | skip/ghc/ghc.xibuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/skip/ghc/ghc.xibuild b/skip/ghc/ghc.xibuild new file mode 100644 index 0000000..ecd9adf --- /dev/null +++ b/skip/ghc/ghc.xibuild @@ -0,0 +1,36 @@ +#!/bin/sh + +NAME="ghc" +DESC="The Glasgow Haskell Compiler" + +MAKEDEPS="make " +DEPS="sbase gcc gmp libffi llvm musl ncurses perl " + +PKG_VER=9.0.1 +SOURCE="https://downloads.haskell.org/~ghc/$PKG_VER/ghc-$PKG_VER-src.tar.xz" +ADDITIONAL="tests-use-iterable-from-collections-abc.patch skip-tests.patch 0006-Optimiser-Correctly-deal-with-strings-starting-with-unicode.patch 0005-buildpath-abi-stability.patch 0005-Set-min-LLVM-version-to-9-and-make-version-checking-.patch 0004-Fix-autoconf-after-6d6edb1bbb.patch 0003-llvmGen-Accept-range-of-LLVM-versions.patch 0002-configure-fix-the-use-of-some-obsolete-macros-19189.patch 0001-Replace-more-autotools-obsolete-macros-19189.patch 0000-bootstrap.patch " + +prepare () { + apply_patches + + cp mk/build.mk.sample mk/build.mk + + cat >> mk/build.mk <<-EOF + BuildFlavour = perf-llvm + EOF + autoreconf -fi +} + +build () { + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sysconfdir=/etc \ + --with-system-libffi \ + --disable-ld-override + make +} + +package () { + make DESTDIR=$PKG_DEST install +} |