83 lines
2.1 KiB
Bash
Executable File
83 lines
2.1 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
#based on v1.0
|
|
|
|
VERSIONFIREFOX=$(curl https://raw.githubusercontent.com/Can202/FirefoxInstallerLinux/develop/versions/seamonkey)
|
|
ARCHT="i686"
|
|
|
|
clear
|
|
echo "Seamonkey Installer"
|
|
echo "by Can202"
|
|
|
|
depen=true
|
|
|
|
echo "checking dependencies..."
|
|
if [ ! -f "/usr/bin/git" ]
|
|
then
|
|
echo git is not installed...
|
|
depen=false
|
|
read nothing
|
|
fi
|
|
if [ ! -f "/usr/bin/curl" ]
|
|
then
|
|
echo curl is not installed...
|
|
depen=false
|
|
read nothing
|
|
fi
|
|
if [ ! -f "/usr/bin/tar" ]
|
|
then
|
|
echo tar is not installed...
|
|
depen=false
|
|
read nothing
|
|
fi
|
|
|
|
if [ $depen = "false" ]
|
|
then
|
|
exit
|
|
fi
|
|
|
|
cd /tmp/
|
|
|
|
|
|
# removing cache
|
|
if [ -d "/tmp/FirefoxInstalerCache/" ]
|
|
then
|
|
rm -R FirefoxInstalerCache/
|
|
fi
|
|
|
|
|
|
mkdir FirefoxInstalerCache/
|
|
cd FirefoxInstalerCache/
|
|
echo "Cache folder created"
|
|
|
|
curl -O https://archive.mozilla.org/pub/seamonkey/releases/$VERSIONFIREFOX/linux-$ARCHT/en-US/seamonkey-$VERSIONFIREFOX.en-US.linux-$ARCHT.tar.bz2
|
|
tar -xjvf seamonkey-$VERSIONFIREFOX.en-US.linux-$ARCHT.tar.bz2
|
|
echo "Seamonkey binary downloaded and unzipped"
|
|
|
|
git clone https://github.com/Can202/FirefoxInstallerLinux
|
|
cd FirefoxInstallerLinux/
|
|
git checkout v1.0
|
|
cd ../
|
|
echo "media cloned!"
|
|
|
|
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/seamonkey/seamonkey-addressbook-can.desktop
|
|
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/seamonkey/seamonkey-mail-can.desktop
|
|
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/seamonkey/seamonkey-can.desktop
|
|
sed -i 's/userh/'$USER'/g' FirefoxInstallerLinux/extras/seamonkey/seamonkey-can
|
|
|
|
|
|
cp -R seamonkey/ /home/$USER/.seamonkey-can
|
|
chmod a+x FirefoxInstallerLinux/extras/seamonkey/seamonkey-can
|
|
|
|
cp FirefoxInstallerLinux/extras/seamonkey/seamonkey-can.desktop /home/$USER/.local/share/applications/
|
|
cp FirefoxInstallerLinux/extras/seamonkey/seamonkey-mail-can.desktop /home/$USER/.local/share/applications/
|
|
cp FirefoxInstallerLinux/extras/seamonkey/seamonkey-addressbook-can.desktop /home/$USER/.local/share/applications/
|
|
|
|
cp FirefoxInstallerLinux/extras/seamonkey/seamonkey-can /home/$USER/.seamonkey-can/
|
|
echo "Seamonkey installed"
|
|
|
|
cd ../
|
|
rm -R FirefoxInstalerCache/
|
|
echo "chache removed!"
|
|
|