WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Realplayer 11  (Read 3907 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Realplayer 11
« on: October 03, 2009, 11:03:42 PM »
The nightly build of Realplayer.  It will be updated from time to time.

Code: [Select]
#!/bin/sh
# Adapted from update-Helix.

WORKDIR=/tmp/real  ## Edit to suit preferences.
[ -d "$WORKDIR"/pkg ] && sudo rm -rf "$WORKDIR"/pkg
[ -d "$WORKDIR"/opt ] && sudo rm -rf "$WORKDIR"/opt
mkdir -p "$WORKDIR"/pkg/usr/local/lib
mkdir -p "$WORKDIR"/pkg/usr/local/share/applications

[ -f /usr/local/tce.installed/gtk2.tcz ] || tce-load -iw gtk2.tcz > /dev/null 2>&1
[ -f /usr/local/tce.installed/shared-mime-info.tcz ] || tce-load -iw shared-mime-info.tcz > /dev/null 2>&1
[ -f /usr/local/tce.installed/libasound.tcz ] || tce-load -iw libasound.tcz > /dev/null 2>&1
[ -f /usr/local/tce.installed/squashfs-tools-4.x.tcz ] || tce-load -iw squashfs-tools-4.x.tcz > /dev/null 2>&1
[ -f /usr/local/tce.installed/wget.tcz ] || tce-load -iw wget.tcz > /dev/null 2>&1

pressEnter () {
  echo -n "Press Enter to finish "
  read REPLY
}
[ -d "$WORKDIR" ] && mkdir -p "$WORKDIR"
cd "$WORKDIR"

if [ ! -e RealPlayer11GOLD.rpm ]; then
  echo
  DONE=0
  while [ $DONE = 0 ]; do
    busybox wget http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.rpm
    [ $? = 0 ] && DONE=1
  done
fi

rpm2cpio RealPlayer11GOLD.rpm | cpio -iud

cd opt/real

sudo mv RealPlayer "$WORKDIR"/pkg/usr/local/lib

cd "$WORKDIR"
if [ ! -f "$WORKDIR"/pkg/usr/local/share/applications ]; then
cat > "$WORKDIR"/pkg/usr/local/share/applications/realplayer.desktop << "EOF"
[Desktop Entry]
Type=Application
Name=RealPlayer
Exec=/usr/local/lib/RealPlayer/realplay.bin
Categories=Utility

EOF
fi

if [ ! -f realplayer.tcz.dep ]; then
cat > realplayer.tcz.dep << "EOF"
gtk2.tcz
shared-mime-info.tcz
libasound.tcz
wget.tcz

EOF
fi


mksquashfs pkg `cat /opt/.tce_dir`/optional/realplayer.tcz -noappend > /dev/null 2>&1
cd `cat /opt/.tce_dir`/optional
md5sum realplayer.tcz > realplayer.tcz.md5.txt

if [ ! -f realplayer.tcz.dep ]; then
cat > realplayer.tcz.dep << "EOF"
gtk2.tcz
shared-mime-info.tcz
libasound.tcz

EOF
fi



 
echo
echo "Done!"
echo "You will need to reboot to use the new realplayer.tcz"
echo
echo "Reboot, load the extension with "tce-load -i realplayer.tcz" and run the updated RealPlayer"
echo
echo "Remember to select your ALSA/OSS audio driver in Tools>Preferences>Hardware"
echo
pressEnter
 
« Last Edit: April 15, 2011, 08:36:35 PM by Jason W »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Realplayer 11
« Reply #1 on: March 07, 2010, 12:15:47 PM »
The download link no longer works.

And with Helix player in the repo, I don't see a need to spend any more time with this script, using the Helix extension would be the way to go.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Realplayer 11
« Reply #2 on: April 15, 2011, 08:37:16 PM »
Updated to create latest Real Player in your TCE directory on each run.  Installs missing deps and also creates a dep file.
« Last Edit: April 15, 2011, 08:43:17 PM by Jason W »