slackbuilds/xap/update-opera-next.sh
2011-07-11 16:35:27 +02:00

12 lines
486 B
Bash
Executable file

#!/bin/sh
ARCH=${ARCH:=$(uname -m)} #i386 for 32 bits
PKGs_ARCHIVE=${PKGs_ARCHIVE:=/home/installs/PKGs}
LATEST_PKG_NAME=$(lftp http://people.opera.com/ruario/snapshot/ -e "ls ; bye" | grep -o "opera-next-.*-x86_64-1ro.tlz")
if [ -e $PKGs_ARCHIVE/$LATEST_PKG_NAME ]; then
echo "Latest package already installed."
else
wget -c http://people.opera.com/ruario/snapshot/$LATEST_PKG_NAME -O $PKGs_ARCHIVE/$LATEST_PKG_NAME \
&& upgradepkg --install-new $PKGs_ARCHIVE/$LATEST_PKG_NAME
fi