mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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>
This commit is contained in:
parent
0574426ec4
commit
fd68a34ffb
2 changed files with 9 additions and 31 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,3 +20,4 @@
|
|||
*~
|
||||
.directory
|
||||
*.phar
|
||||
*.crate
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue