From fd68a34ffb6257c162690dc594b940014f280a7a Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Tue, 13 Jul 2021 07:01:26 +1200 Subject: [PATCH] system/alacritty: Install desktop file. The name changes to "Alacritty" some time in the past and I missed updating the script to find the file. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- .gitignore | 1 + system/alacritty/alacritty.SlackBuild | 39 ++++++--------------------- 2 files changed, 9 insertions(+), 31 deletions(-) diff --git a/.gitignore b/.gitignore index 2e97ca2ab1..a7be0a6092 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ *~ .directory *.phar +*.crate diff --git a/system/alacritty/alacritty.SlackBuild b/system/alacritty/alacritty.SlackBuild index 64db18b2a4..ba8d05e128 100644 --- a/system/alacritty/alacritty.SlackBuild +++ b/system/alacritty/alacritty.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=alacritty VERSION=${VERSION:-0.8.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -139,52 +139,29 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/man/man1 - -if [ -e alacritty.man ] ; then - install -m644 alacritty.man $PKG/usr/man/man1/alacritty.1 -elif [ -e extra/alacritty.man ] ; then - install -m644 extra/alacritty.man $PKG/usr/man/man1/alacritty.1 -fi +install -m644 extra/alacritty.man $PKG/usr/man/man1/alacritty.1 find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/share/bash-completion/completions -if [ -e alacritty-completions.bash ] ; then - install -m644 alacritty-completions.bash $PKG/usr/share/bash-completion/completions/alacritty -elif [ -e extra/completions/alacritty.bash ] ; then - install -m644 extra/completions/alacritty.bash $PKG/usr/share/bash-completion/completions/alacritty -fi +install -m644 extra/completions/alacritty.bash $PKG/usr/share/bash-completion/completions/alacritty mkdir -p $PKG/usr/share/zsh/site-functions -if [ -e alacritty-completions.zsh ] ; then - install -m644 alacritty-completions.zsh $PKG/usr/share/zsh/site-functions/_alacritty -elif [ -e extra/completions/_alacritty ] ; then - install -m644 extra/completions/_alacritty $PKG/usr/share/zsh/site-functions/_alacritty -fi +install -m644 extra/completions/_alacritty $PKG/usr/share/zsh/site-functions/_alacritty mkdir -p $PKG/usr/share/terminfo -if [ -e alacritty.info ] ; then - tic -o $PKG/usr/share/terminfo alacritty.info -elif [ -e extra/alacritty.info ] ; then - tic -o $PKG/usr/share/terminfo -xe alacritty,alacritty-direct extra/alacritty.info -fi +tic -o $PKG/usr/share/terminfo -xe alacritty,alacritty-direct extra/alacritty.info mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE-APACHE README.md alacritty.yml $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/applications -if [ -e $PRGNAM.desktop ] ; then - install -m 644 $PRGNAM.desktop $PKG/usr/share/applications -elif [ -e extra/linux/$PRGNAM.desktop ] ; then - install -m 644 extra/linux/$PRGNAM.desktop $PKG/usr/share/applications -fi +install -m 644 extra/linux/Alacritty.desktop $PKG/usr/share/applications -if [ -e extra/logo/alacritty-term.svg ] ; then - mkdir -p $PKG/usr/share/pixmaps - install -m 644 extra/logo/alacritty-term.svg $PKG/usr/share/pixmaps/Alacritty.svg -fi +mkdir -p $PKG/usr/share/pixmaps +install -m 644 extra/logo/alacritty-term.svg $PKG/usr/share/pixmaps/Alacritty.svg mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc