[ghcup-bin] binary name

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2022-11-17 11:45:58 +01:00
parent 09245463a1
commit 622013ef25
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -7,7 +7,7 @@ CWD=$(pwd)
PRGNAM=$(basename $CWD)
VERSION=${VERSION:-$(curl -s "https://gitlab.haskell.org/haskell/ghcup-hs/-/tags?format=atom" | grep "title>v" | head -n1 | grep -o "[0-9rc.-]*")}
ARCH=$(uname -m)
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-gwh}
TMP=${TMP:-/tmp/$TAG}
PKG=$TMP/pkg-$PRGNAM
@ -22,8 +22,8 @@ mkdir -p $REPOSITORY
rm -fr $PKG
mkdir -p $PKG/usr/bin
cp $REPOSITORY/${PRGNAM}-${VERSION} $PKG/usr/bin/$PRGNAM
chmod 0755 $PKG/usr/bin/$PRGNAM
cp $REPOSITORY/${PRGNAM}-${VERSION} $PKG/usr/bin/ghcup
chmod 0755 $PKG/usr/bin/ghcup
mkdir -p $PKG/install