HOWTO make your module vlc 2.0.0 Two Flowers

Post tutorials, HOWTO's and other useful resources here.
Post Reply
liguero
White ninja
White ninja
Posts: 14
Joined: 16 Mar 2012, 09:13
Location: FRANCE

HOWTO make your module vlc 2.0.0 Two Flowers

Post#1 by liguero » 27 Mar 2012, 21:50

Make your module vlc 2.0.0 Two Flowers

For various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX
# mp3, ogg, ...) as well as DVDs, VCDs, and various streaming
# protocols. It can also be used as a server to stream in unicast or
# multicast in IPv4 or IPv6 on a high-bandwidth network.

Search and download packages slackware and dependencies via slackyd.
Then convert this packages in an vlc.xzm for porteus 1.1

slackyd find 86 files. The final module will contain 19707 files.(423 Mo uncompressed).
The size of vlc.xzm = 134 Mo.

slackyd still cannot find the package libva-0.32.0_sds2-i486-5sl.txz.
It find it after installation. It's too late!
Also, we Let's add to the list of packages to install.

vlc-2.0.0-i486-3sl.txz [from slacky]
vlc-append-0.6-i686-1sl.txz [from slacky]
vlc-qt-0.5.1-i486-1sl.txz [from slacky]
+ libva-0.32.0_sds2-i486-5sl.txz [from repository.slacky.eu]


A script,very simple, which I named slackyd-vlc.sh, why not? performs
all tasks for us.
Search and download packages slackware and dependencies via slackyd.
Then convert this packages in an vlc.xzm for porteus 1.1

1. code: SELECT ALL
2. copy and paste under Kwrite.
3. save as "slackyd-vlc.sh" for instance.
4. run this script as root (su, password) then ./slackyd-vlc.sh

slackyd find 86 files. The final module will contain 19707 files.(423 Mo uncompressed).
The size of vlc.xzm = 134 Mo. This is a big piece !

I use a 4 GB USB key which costs about $ 5.

Warning: qt4 is installed.

If all goes well then you will find "vlc" in the KDE menu "Multimedia".

Code: Select all

#!/bin/bash
#Remove packages and sources
slackyd -p

#Download packages and dependencies -> /var/slackyd
slackyd -g vlc -f

#Search for package libva-0.32.0_sds2-i486-5sl.txz. If not exist download it

if [ ! -s /var/slackyd/libva-0.32.0_sds2-i486-5sl.txz ]; then
wget -P /var/slackyd http://repository.slacky.eu/slackware-13.37/libraries/libva/0.32.0_sds2/libva-0.32.0_sds2-i486-5sl.txz
fi

#Install package
txz=`ls /var/slackyd/*.txz 2>/dev/null`
mkdir vlc-dir

if [ ${#txz} != 0  ];then
	for toconv in $txz
		do
			echo $toconv
			installpkg -root vlc-dir $toconv
			if [ $? != 0 ]; then 
				echo "error installing package "$toconv; exit
			fi
		done

#Make module vlc and activate it
dir2xzm vlc-dir vlc.xzm
activate vlc.xzm

#Remove temporary dir.
read -p 'remove directory vlc-dir created later ? [y/n] : ' -n 1 -s yes
	echo
	if [ $yes = "y" ]; then
	rm -r vlc-dir
	slackyd -p
	fi
fi
Publié after 2 hours 53 minutes 5 seconds:
Sorry, I forgot to mention that you don't forget to make the script executable.

chmod +x slackyd-vlc.sh

bye

Post Reply