wok rev 12852

Add: vlc-plugin (2.0.0)
author Dominique Corbex <domcox@slitaz.org>
date Wed May 23 13:04:01 2012 +0200 (2012-05-23)
parents 1215f70e6878
children cc39d5e5463c
files vlc-plugin/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/vlc-plugin/receipt	Wed May 23 13:04:01 2012 +0200
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="vlc-plugin"
     1.7 +VERSION="2.0.0"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="VLC Web Browser Plug-in that will allow to play video and audio"
    1.10 +MAINTAINER="domcox@dlitaz.org"
    1.11 +WEB_SITE="www.videolan.org"
    1.12 +SOURCE="npapi-vlc"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.xz"
    1.14 +WGET_URL="http://download.videolan.org/pub/videolan/vlc/$VERSION/$TARBALL"
    1.15 +
    1.16 +DEPENDS="libvlc dbus"
    1.17 +BUILD_DEPENDS="firefox-dev libvlc-dev dbus-dev gtk+-dev"
    1.18 +
    1.19 +[ -f /etc/slitaz/slitaz.conf ] && . /etc/slitaz/slitaz.conf
    1.20 +[ $INSTALLED ] || INSTALLED=/var/lib/tazpkg/installed
    1.21 +
    1.22 +
    1.23 +# Rules to configure and make the package.
    1.24 +compile_rules()
    1.25 +{
    1.26 +	./configure $CONFIGURE_ARGS && make && make install
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	cp -a $install/* $fs
    1.33 +}
    1.34 +
    1.35 +post_install()
    1.36 +{
    1.37 +	echo -n "Processing post install commands..."
    1.38 +	if [ -d \$1/$INSTALLED/firefox ] ; then
    1.39 +		mkdir -p \$1/usr/lib/firefox/plugins
    1.40 +		ln -s /usr/lib/mozilla/plugins/libvlcplugin.so \$1/usr/lib/firefox/plugins
    1.41 +	fi
    1.42 +	status
    1.43 +}
    1.44 +
    1.45 +post_remove()
    1.46 +{
    1.47 +	echo -n "Processing post remove commands..."
    1.48 +	if [ -d $INSTALLED/firefox ] ; then
    1.49 +		rm -f /usr/lib/firefox/plugins/libvlcplugin.so
    1.50 +	fi
    1.51 +	status
    1.52 +}