Package Details: ghcup-git 0.0.7.r100.g5c1d711-1

Git Clone URL: https://aur.archlinux.org/ghcup-git.git (read-only, click to copy)
Package Base: ghcup-git
Description: Painless installation of GHC toolchain
Upstream URL: https://gitlab.haskell.org/haskell/ghcup
Licenses: BSD
Submitter: spaceships
Maintainer: spaceships
Last Packager: spaceships
Votes: 1
Popularity: 0.007524
First Submitted: 2018-11-17 01:13
Last Updated: 2019-08-23 14:14

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

spaceships commented on 2019-08-23 14:15

Thank you for the comments, I've just updated it to address them

hasufell commented on 2019-07-26 06:36

Hi, I'm the author of ghcup. A few suggestions:

  1. for ghcup to work you need to modify PATH as user after installation. You should print a post-install message explaining this, see https://gitlab.haskell.org/haskell/ghcup#installation
  2. I recently added basic bash-completion. You might want to install/enable it: https://gitlab.haskell.org/haskell/ghcup/blob/master/.bash-completion
  3. As the previous comment states, your really only need 'ghcup' shell script

petrus7 commented on 2019-06-20 11:18

ghcup moved to gitlab.haskell.org/haskell/ghcup.

Copying the whole git repo into /usr/share is not necessary.

Here is a patch:

diff --git a/PKGBUILD b/PKGBUILD
index [`5a09cbd`](https://aur.archlinux.org/cgit/aur.git/commit/?h=ghcup-git&id=5a09cbd)..ed13f47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,25 +4,27 @@
 pkgname=ghcup-git
 _pkgname=ghcup

-pkgver=0.0.6.r13.gd0eae9a
+pkgver=0.0.7.r70.gb56597a
+pkgrel=3
+
 pkgver() {
     cd "$_pkgname"
     git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
 }

-pkgrel=2
 license=('BSD')
 depends=()
 pkgdesc='Painless installation of GHC toolchain'
-url='<https://github.com/haskell/ghcup>'
+url='<https://gitlab.haskell.org/haskell/ghcup>'
 arch=('any')
 md5sums=('SKIP')

-source=('git://github.com/haskell/ghcup.git')
+source=('git+<https://gitlab.haskell.org/haskell/ghcup.git>')

 package() {
     mkdir -p $pkgdir/usr/bin
     mkdir -p $pkgdir/usr/share
+    install $srcdir/ghcup/ghcup $pkgdir/usr/bin
     cp -r $srcdir/ghcup $pkgdir/usr/share
-    ln -s /usr/share/ghcup/ghcup $pkgdir/usr/bin/ghcup
+    rm -fr $pkgdir/usr/share/ghcup/.git*
 }