77 lines
2.3 KiB
Bash
77 lines
2.3 KiB
Bash
# Non github dependancies
|
|
if ! hash poetry 2>/dev/null;then
|
|
pipx install poetry
|
|
fi
|
|
|
|
if ! hash rustup 2>/dev/null;then
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
fi
|
|
|
|
# Temporarily change directory
|
|
pushd $HOME/.local/bin > /dev/null
|
|
|
|
# Extract what eget could not
|
|
|
|
# Handle 7z
|
|
if compgen -G "7z*tar*" > /dev/null; then
|
|
# Extract 7z
|
|
tar xf 7z*tar* 7zzs
|
|
# Remove/rename extracted 7zzs (7z statically linked) to 7z
|
|
mv -f 7zzs 7z
|
|
# Remove archive
|
|
rm -r 7z*tar*
|
|
fi
|
|
|
|
# Handle bash_completion
|
|
if compgen -G "bash-completion*tar*" > /dev/null; then
|
|
# Extract bash-completion
|
|
tar xf bash-completion*tar*
|
|
|
|
# Remove old bash_completion
|
|
rm -r bash_completion bash_completion.d completions
|
|
|
|
# Move new bash_completion
|
|
mv -f bash-completion*/bash_completion .
|
|
mv -f bash-completion*/bash_completion.d .
|
|
mv -f bash-completion*/completions .
|
|
|
|
# Remove extracted files
|
|
rm -r bash-completion-*
|
|
|
|
# Make bash_completion executable
|
|
chmod +x bash_completion
|
|
fi
|
|
|
|
if compgen -G "ffmpeg*tar*" > /dev/null; then
|
|
# Extract ffmpeg
|
|
tar xf ffmpeg*tar*
|
|
|
|
# Handle shared libraries
|
|
rsync --remove-source-files --links $(fd --glob "*.so*") ../lib
|
|
|
|
# Binaries
|
|
mv -f ffmpeg*/bin/* .
|
|
|
|
# Remove archive
|
|
rm -r ffmpeg*tar*
|
|
|
|
# Remove extracted files
|
|
rm -r ffmpeg-*
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Gen Desktop files
|
|
gendesk -f -n --pkgname "firefox" --name "Firefox" --exec "firefox %u" --icon "firefox" --categories "Network" --comment "Firefox Web Browser" --genericname "Web Browser"
|
|
gendesk -f -n --pkgname "neovide" --name "Neovide" --exec "neovide %F" --icon "neovide" --categories "TextEditor;Development" --comment "Neovim GUI" --genericname "Neovim GUI"
|
|
gendesk -f -n --pkgname "code" --name "Visual Studio Code" --exec "code %F" --icon "vscode" --categories "TextEditor;Development" --comment "Visual Studio Code" --genericname "Code Editor"
|
|
gendesk -f -n --pkgname "kitty" --name "Kitty" --exec "kitty" --icon "kitty" --categories "Utility" --comment "Kitty Terminal Emulator" --genericname "Terminal Emulator"
|
|
gendesk -f -n --pkgname "micro" --name "Micro" --exec "micro %F" --icon "micro" --categories "TextEditor;Development" --comment "Micro Text Editor" --genericname "Text Editor" --terminal=true
|
|
|
|
# Move desktop files to applications directory
|
|
rsync --remove-source-files *.desktop ../share/applications
|
|
|
|
# Unchange directory
|
|
popd > /dev/null
|