# HG changeset patch # User Dominique Corbex # Date 1337771041 -7200 # Node ID b2d7481dd7f1cdb8f435efb4859301c685910415 # Parent 1215f70e68786fa58bcf7b1318d2ac54ab5e652f Add: vlc-plugin (2.0.0) diff -r 1215f70e6878 -r b2d7481dd7f1 vlc-plugin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vlc-plugin/receipt Wed May 23 13:04:01 2012 +0200 @@ -0,0 +1,49 @@ +# SliTaz package receipt. + +PACKAGE="vlc-plugin" +VERSION="2.0.0" +CATEGORY="multimedia" +SHORT_DESC="VLC Web Browser Plug-in that will allow to play video and audio" +MAINTAINER="domcox@dlitaz.org" +WEB_SITE="www.videolan.org" +SOURCE="npapi-vlc" +TARBALL="$SOURCE-$VERSION.tar.xz" +WGET_URL="http://download.videolan.org/pub/videolan/vlc/$VERSION/$TARBALL" + +DEPENDS="libvlc dbus" +BUILD_DEPENDS="firefox-dev libvlc-dev dbus-dev gtk+-dev" + +[ -f /etc/slitaz/slitaz.conf ] && . /etc/slitaz/slitaz.conf +[ $INSTALLED ] || INSTALLED=/var/lib/tazpkg/installed + + +# Rules to configure and make the package. +compile_rules() +{ + ./configure $CONFIGURE_ARGS && make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} + +post_install() +{ + echo -n "Processing post install commands..." + if [ -d \$1/$INSTALLED/firefox ] ; then + mkdir -p \$1/usr/lib/firefox/plugins + ln -s /usr/lib/mozilla/plugins/libvlcplugin.so \$1/usr/lib/firefox/plugins + fi + status +} + +post_remove() +{ + echo -n "Processing post remove commands..." + if [ -d $INSTALLED/firefox ] ; then + rm -f /usr/lib/firefox/plugins/libvlcplugin.so + fi + status +}