Install latest Omxplayer - Script

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Install latest Omxplayer - Script

Postby Reynaldo2333 » Mon Dec 30, 2013 2:59 am

well i made this bash script, took me some hours lol, anyway i hope someone can exploit it, you're free to modify it and let me know the changes if you think its more efficient.

What it does:

Install wget if needed, download the .deb from the link you gave it, decompress it, installs it manually;
Uninstall the manual installation of omxplayer;

Instructions:

1.Save this on an empty folder of your liking on a file with .sh extension for example: omxplayer.sh
2.Type this in the terminal: sh omxplayer.sh
3.Follow the instructions

Latest .deb: http://omxplayer.sconde.net/builds/omxp ... _armhf.deb

$this->bbcode_second_pass_code('', '#/bin/bash
#
echo "This scripts helps to install or uninstall a manual installed omxplayer"
read -p "Do you want to install or uninstall omxplayer with this script?:(install/uninstall): " verif

if [[ "$verif" = "install" ]]; then

verif1=0
test -e /usr/bin/wget && ((verif1++)) #verifies if wget is installed

if [[ $verif1 -eq 1 ]]; then
echo "You have wget"
else
echo "We have to install wget"
sudo pacman -S wget
fi
echo "We also need root permission so we can copy the files from omxplayer"
echo "Note: this should work for any deb file but will need to be modified"
echo "Please, empty this folder so there's only 1 deb after the download"
echo "First we're gonna uninstall any omxplayer that you may have, pardon me sir."

sudo pacman -Rs omxplayer

read -p "Now Give me the link so i can download the deb for you: " link #reads the link you put

wget $link #downloading the .deb
ar vx *.deb #decompressiong of .deb
tar -xJf data.tar.xz #decompressing of tar.xz
rm control.tar.gz #removing files that we dont need
rm debian-binary #removing other files that we dont need
rm data.tar.xz #removing other files that we dont need
rm *.deb #removes the deb file that we downloaded.
sudo cp -r usr / #copy respective files to /usr/bin so you can run the program with just omxplayer

echo "We are done, you're such a good master. Good evening"

elif [[ "$verif" = "uninstall" ]]; then

sudo rm /usr/bin/omxplayer
sudo rm /usr/bin/omxplayer.bin
sudo rm -r /usr/lib/omxplayer
sudo rm -r /usr/share/doc/omxplayer
echo "Everything should be fine now"
exit

fi


')
Reynaldo2333
 
Posts: 4
Joined: Thu Dec 26, 2013 7:35 pm

Re: Install latest Omxplayer - Script

Postby WarheadsSE » Mon Dec 30, 2013 4:48 am

Whats the difference from the omxplayer in the repos? or omxplayer-git?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Install latest Omxplayer - Script

Postby Reynaldo2333 » Mon Dec 30, 2013 11:08 am

Omxplayer-git and the repo are actually the same, but they are not the latest build. Latest build is omxplayer_0.3.3~git20131216~b34143c_armhf.deb

Repo build isomxplayer-git 262.9b52cee-1
Reynaldo2333
 
Posts: 4
Joined: Thu Dec 26, 2013 7:35 pm

Re: Install latest Omxplayer - Script

Postby moonman » Mon Dec 30, 2013 12:52 pm

Submit a pull request on github to update it in the repo :)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Install latest Omxplayer - Script

Postby Reynaldo2333 » Mon Dec 30, 2013 1:04 pm

Reynaldo2333
 
Posts: 4
Joined: Thu Dec 26, 2013 7:35 pm

Re: Install latest Omxplayer - Script

Postby WarheadsSE » Mon Dec 30, 2013 1:08 pm

$this->bbcode_second_pass_quote('moonman', 'S')ubmit a pull request on github to update it in the repo :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 2 guests