#!/bin/sh
tce-load -iw gawk aspell aspell-en squashfs-tools ca-certificates ffmpeg4 alsa
mkdir -p translate-shell/usr/local/share
cd translate-shell/usr/local/share
wget -c "https://github.com/soimort/translate-shell/archive/refs/heads/develop.zip"
mkdir -p ../tce.installed/
echo -e "#!/bin/sh\ncd /usr/local/share/\nunzip /usr/local/share/develop.zip\ngrep \"translate-shell\" /home/tc/.ashrc || echo \"export PATH=/usr/local/share/translate-shell-develop/:\${PATH}\" >> /home/tc/.ashrc\nfiletool.sh -b\nexit" > ../tce.installed/translate-shell
unzip develop.zip
mkdir -p doc/translate-shell
cp translate-shell-develop/LICENSE doc/translate-shell
cd ../../../../
sudo chmod -R 777 translate-shell/
mksquashfs translate-shell/ translate-shell.tcz
md5sum translate-shell.tcz > translate-shell.tcz.md5.txt
/usr/bin/md5sum -cs translate-shell.tcz.md5.txt || echo "Error on $0"
submitqc --libs
