From e0c24aab791571a186b94d799f72620ededf7291 Mon Sep 17 00:00:00 2001 From: V <150687949+vigress8@users.noreply.github.com> Date: Tue, 7 May 2024 02:26:11 +0400 Subject: [PATCH] fix(ghcup-bin): breakage from 5.x conversion (#5953) --- packages/ghcup-bin/.SRCINFO | 3 +++ packages/ghcup-bin/ghcup-bin.pacscript | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/ghcup-bin/.SRCINFO b/packages/ghcup-bin/.SRCINFO index efe1210329..b77121d1d0 100644 --- a/packages/ghcup-bin/.SRCINFO +++ b/packages/ghcup-bin/.SRCINFO @@ -7,6 +7,9 @@ arch = amd64 arch = arm64 arch = arm arch = i386 +depends = libgmp10 +depends = libtinfo6 +depends = zlib1g breaks = ghcup-git maintainer = vigress8 repology = project: ghcup diff --git a/packages/ghcup-bin/ghcup-bin.pacscript b/packages/ghcup-bin/ghcup-bin.pacscript index 371b9bc1ec..6a1d0f1b85 100644 --- a/packages/ghcup-bin/ghcup-bin.pacscript +++ b/packages/ghcup-bin/ghcup-bin.pacscript @@ -3,6 +3,7 @@ gives="ghcup" pkgver="0.1.22.0" pkgdesc="Installer for Haskell, a general-purpose programming language" arch=('amd64' 'arm64' 'arm' 'i386') +depends=('libgmp10' 'libtinfo6' 'zlib1g') url='https://www.haskell.org/ghcup/' breaks=("${gives}-git") maintainer=("vigress8 ") @@ -21,7 +22,7 @@ sha256sums_i386=("1fd4fa989653a127d33f90cb4cc11fd024ea4085e795c0b0f6ed97afc5e8b6 package() { cd "${_archive}" - install -Dm755 "${source[0]/${_baseurl}\//}" "${pkgdir}/usr/bin/ghcup" + install -Dm755 ./*-linux-"${gives}-${pkgver}" "${pkgdir}/usr/bin/ghcup" _install_completion bash bash-completion/completions/ghcup _install_completion zsh zsh/site-functions/_ghcup _install_completion fish fish/vendor_completions.d/ghcup.fish @@ -30,7 +31,7 @@ package() { _install_completion() { local shell="$1" dest="$2" "${pkgdir}/usr/bin/ghcup" "--${shell}-completion-script" /usr/bin/ghcup > "${shell}-temp" - sudo install -Dm644 "${shell}-temp" "${pkgdir}/usr/share/${dest}" + install -Dm644 "${shell}-temp" "${pkgdir}/usr/share/${dest}" } post_install() {