Skip to content

Commit

Permalink
fix(ghcup-bin): for real this time (#6016)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigress8 authored May 16, 2024
1 parent c1dccf2 commit 28ed05e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
16 changes: 8 additions & 8 deletions packages/ghcup-bin/.SRCINFO
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ pkgdesc = Installer for Haskell, a general-purpose programming language
url = https://www.haskell.org/ghcup/
arch = amd64
arch = arm64
arch = arm
arch = armhf
arch = i386
depends = libgmp10
depends = libtinfo6
depends = zlib1g
depends = libgmp-dev
optdepends = curl: downloader
optdepends = wget: downloader
breaks = ghcup-git
maintainer = vigress8 <[email protected]>
repology = project: ghcup
source_amd64 = https://downloads.haskell.org/~ghcup/0.1.22.0/x86_64-linux-ghcup-0.1.22.0
source_arm64 = https://downloads.haskell.org/~ghcup/0.1.22.0/aarch64-linux-ghcup-0.1.22.0
source_armhf = https://downloads.haskell.org/~ghcup/0.1.22.0/armv7-linux-ghcup-0.1.22.0
source_i386 = https://downloads.haskell.org/~ghcup/0.1.22.0/i386-linux-ghcup-0.1.22.0
source_amd64 = ghcup::https://downloads.haskell.org/~ghcup/0.1.22.0/x86_64-linux-ghcup-0.1.22.0
source_arm64 = ghcup::https://downloads.haskell.org/~ghcup/0.1.22.0/aarch64-linux-ghcup-0.1.22.0
source_armhf = ghcup::https://downloads.haskell.org/~ghcup/0.1.22.0/armv7-linux-ghcup-0.1.22.0
source_i386 = ghcup::https://downloads.haskell.org/~ghcup/0.1.22.0/i386-linux-ghcup-0.1.22.0
sha256sums_amd64 = bf213f4dfd2271b46ca52e2f14e96850ce32e9115e5acc90f1dc5a4e815e32af
sha256sums_arm64 = 3eda556959462579b73558616646c9fc01a583acc7a4611bb21a32706deae142
sha256sums_armhf = 7c66253e52c5fb627a4d4b203a69e69f4d7732348ad6a830a41d7e2d79a61c5d
Expand Down
17 changes: 8 additions & 9 deletions packages/ghcup-bin/ghcup-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ pkgname="ghcup-bin"
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')
arch=('amd64' 'arm64' 'armhf' 'i386')
depends=('libgmp-dev')
optdepends=('curl: downloader' 'wget: downloader')
url='https://www.haskell.org/ghcup/'
breaks=("${gives}-git")
maintainer=("vigress8 <[email protected]>")
repology=("project: ${gives}")

_baseurl="https://downloads.haskell.org/~${gives}/${pkgver}"
source_amd64=("${_baseurl}/x86_64-linux-${gives}-${pkgver}")
source_amd64=("${gives}::${_baseurl}/x86_64-linux-${gives}-${pkgver}")
sha256sums_amd64=("bf213f4dfd2271b46ca52e2f14e96850ce32e9115e5acc90f1dc5a4e815e32af")
source_arm64=("${_baseurl}/aarch64-linux-${gives}-${pkgver}")
source_arm64=("${gives}::${_baseurl}/aarch64-linux-${gives}-${pkgver}")
sha256sums_arm64=("3eda556959462579b73558616646c9fc01a583acc7a4611bb21a32706deae142")
source_armhf=("${_baseurl}/armv7-linux-${gives}-${pkgver}")
source_armhf=("${gives}::${_baseurl}/armv7-linux-${gives}-${pkgver}")
sha256sums_armhf=("7c66253e52c5fb627a4d4b203a69e69f4d7732348ad6a830a41d7e2d79a61c5d")
source_i386=("${_baseurl}/i386-linux-${gives}-${pkgver}")
source_i386=("${gives}::${_baseurl}/i386-linux-${gives}-${pkgver}")
sha256sums_i386=("1fd4fa989653a127d33f90cb4cc11fd024ea4085e795c0b0f6ed97afc5e8b634")


package() {
cd "${_archive}"
install -Dm755 ./*-linux-"${gives}-${pkgver}" "${pkgdir}/usr/bin/ghcup"
install -Dm755 ./"${gives}" -t "${pkgdir}/usr/bin"
_install_completion bash bash-completion/completions/ghcup
_install_completion zsh zsh/site-functions/_ghcup
_install_completion fish fish/vendor_completions.d/ghcup.fish
Expand Down

0 comments on commit 28ed05e

Please sign in to comment.