aboutsummaryrefslogtreecommitdiff
path: root/system/alacritty/alacritty.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-07-13 07:01:26 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-17 09:50:26 +0700
commitfd68a34ffb6257c162690dc594b940014f280a7a (patch)
tree8b53dc35062a320f7be21e19e63fdd8742c77f20 /system/alacritty/alacritty.SlackBuild
parent0574426ec4661a4ee475eff0b94c7832586402f9 (diff)
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 <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/alacritty/alacritty.SlackBuild')
-rw-r--r--system/alacritty/alacritty.SlackBuild39
1 files changed, 8 insertions, 31 deletions
diff --git a/system/alacritty/alacritty.SlackBuild b/system/alacritty/alacritty.SlackBuild
index 64db18b2a48b..ba8d05e12897 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