abinfo "Installing DrRacket desktop entry and icons ..."
install -Dvm644 "$SRCDIR"/../share/pkgs/drracket-core-lib/drracket/drracket.desktop \
    "$PKGDIR"/usr/share/applications/drracket.desktop
install -dv "$PKGDIR"/usr/share/icons/hicolor/scalable/apps
ln -sv ../../../../racket/pkgs/icons/racket-logo.svg \
    "$PKGDIR"/usr/share/icons/hicolor/scalable/apps/drracket.svg

abinfo "Appending Icon= to desktop entry ..."
echo "Icon=drracket" \
    >> "$PKGDIR"/usr/share/applications/drracket.desktop

abinfo "Installing shell completions ..."
install -Dvm644 "$SRCDIR"/../share/pkgs/shell-completion/racket-completion.bash \
    "$PKGDIR"/usr/share/bash-completion/completions/racket.bash
install -Dvm644 "$SRCDIR"/../share/pkgs/shell-completion/racket-completion.zsh \
    "$PKGDIR"/usr/share/zsh/functions/Completion/Unix/_racket

abinfo "Removing HTML documentations ..."
rm -rv "$PKGDIR"/usr/share/doc/racket
