File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Template file for 'ghcup-hs'
2+ pkgname=ghcup-hs
3+ version=0.1.50.2
4+ revision=1
5+ build_style=cabal
6+ cabal_index_state="2025-05-16T00:00:00Z"
7+ hostmakedepends="ghc cabal-install"
8+ makedepends="libffi-devel ncurses-devel zlib-devel bzip2-devel openssl-devel"
9+ short_desc="Haskell toolchain installer"
10+ maintainer="rayfadh <rayfadh@duck.com>"
11+ license="LGPL-3.0-only"
12+ homepage="https://www.haskell.org/ghcup/"
13+ changelog="https://raw.githubusercontent.com/haskell/ghcup-hs/master/CHANGELOG.md"
14+ distfiles="https://github.com/haskell/ghcup-hs/archive/v${version}.tar.gz"
15+ checksum=ba2a2ef799fa7810970e09b19a7fdd7b2360ddd64d8e9b0624ab640cca627b89
16+ # Haskell/Cabal does not support cross-compilation.
17+ # Use native masterdirs (with qemu-user-static for other arches) to build.
18+ nocross="Haskell/GHC does not support cross-compilation"
19+ nopie_files="/usr/bin/ghcup"
20+
21+ if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
22+ makedepends+=" libffi-devel-32bit ncurses-devel-32bit zlib-devel-32bit bzip2-devel-32bit openssl-devel-32bit"
23+ fi
24+
25+ post_install() {
26+ vmkdir usr/share/bash-completion/completions
27+ ${DESTDIR}/usr/bin/ghcup --bash-completion-script /usr/bin/ghcup > ${DESTDIR}/usr/share/bash-completion/completions/ghcup
28+ vmkdir usr/share/zsh/site-functions
29+ ${DESTDIR}/usr/bin/ghcup --zsh-completion-script /usr/bin/ghcup > ${DESTDIR}/usr/share/zsh/site-functions/_ghcup
30+ }
You can’t perform that action at this time.
0 commit comments