This commit is contained in:
Gwenhael Le Moine 2023-07-01 10:43:23 +02:00
parent 9dc4e3c8f3
commit aed1c05df0
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -7,7 +7,7 @@ PRGNAM=$(basename $CWD)
ARCH=$(uname -m)
GITHUB_REPO=racket/racket
VERSION=${VERSION:-$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r .tag_name | sed 's|^v||')}
BUILD=1
BUILD=3
TAG=gwh
OUTPUT=/tmp
@ -30,7 +30,9 @@ chmod +x $REPOSITORY/racket-${VERSION}-${ARCH}-linux-cs.sh
$REPOSITORY/racket-${VERSION}-${ARCH}-linux-cs.sh --unix-style --create-dir --dest $PKG$PREFIX
# post-install
[ -e $PKG$PREFIX/bin/racket-uninstall ] && rm $PKG$PREFIX/bin/racket-uninstall
rm $PKG$PREFIX/bin/racket-uninstall
mv $PKG$PREFIX/lib/racket/compiled$PKG$PREFIX $PKG$PREFIX/lib/racket/compiled/
rm -r $PKG$PREFIX/lib/racket/compiled/tmp/
mv $PKG$PREFIX/share/man $PKG$PREFIX
[ -d $PKG$PREFIX/man ] && find $PKG$PREFIX/man -type f -not -name \*.gz -exec gzip -9 {} \;