Skip to content

Commit 8565b8d

Browse files
committed
New package: ghcup-hs-0.1.50.2
1 parent f939f45 commit 8565b8d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

srcpkgs/ghcup-hs/template

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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 xz-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+
lib32depends="libffi-devel>=0 ncurses-devel>=0 zlib-devel>=0 bzip2-devel>=0 openssl-devel>=0 xz-devel>=0"
17+
# Haskell/Cabal does not support cross-compilation.
18+
nocross=yes
19+
nopie_files="/usr/bin/ghcup"
20+
21+
post_install() {
22+
vmkdir usr/share/bash-completion/completions
23+
${DESTDIR}/usr/bin/ghcup --bash-completion-script /usr/bin/ghcup > ${DESTDIR}/usr/share/bash-completion/completions/ghcup
24+
vmkdir usr/share/zsh/site-functions
25+
${DESTDIR}/usr/bin/ghcup --zsh-completion-script /usr/bin/ghcup > ${DESTDIR}/usr/share/zsh/site-functions/_ghcup
26+
}

0 commit comments

Comments
 (0)