wok-next annotate xine-plugin/receipt @ rev 15588

arj: ugly ack
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 02 16:43:36 2013 +0000 (2013-12-02)
parents 380ffe05937a
children 18af472aef2e
rev   line source
pascal@1653 1 # SliTaz package receipt.
pascal@1653 2
pascal@1653 3 PACKAGE="xine-plugin"
pascal@1653 4 VERSION="1.0.2"
pascal@1653 5 CATEGORY="multimedia"
pascal@1653 6 SHORT_DESC="Xine media player firefox plugin."
pascal@1653 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@1653 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@1653 10 WEB_SITE="http://www.xinehq.de/"
pascal@1653 11 WGET_URL="http://switch.dl.sourceforge.net/sourceforge/xine/$TARBALL"
pascal@1653 12
pascal@15000 13 DEPENDS="xine-lib firefox"
pascal@15000 14 BUILD_DEPENDS="xine-lib xine-lib-dev xorg-dev"
pascal@15000 15
pascal@1653 16 # Rules to configure and make the package.
pascal@1653 17 compile_rules()
pascal@1653 18 {
pascal@1653 19 cd $src
pascal@15264 20 mkdir -p $DESTDIR/root/.mozilla/plugins
pascal@1653 21 ./configure --prefix=/usr \
pascal@1653 22 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@1653 23 make &&
pascal@15000 24 make DESTDIR=$DESTDIR install
pascal@1653 25 }
pascal@1653 26
pascal@1653 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1653 28 genpkg_rules()
pascal@1653 29 {
pascal@1653 30 mkdir -p $fs/usr/share/xine
pascal@15000 31 cp -a $install/root/.mozilla/plugins/xineplugin.so $fs/usr/share/xine
pascal@1653 32 }
pascal@1653 33
pascal@1653 34 # Pre and post install commands for Tazpkg.
pascal@1653 35 post_install()
pascal@1653 36 {
pascal@1653 37 ln -s /usr/share/xine/xineplugin.so $1/usr/lib/firefox-*/plugins/
pascal@11018 38 ln -s /usr/share/xine/xineplugin.so $1/usr/lib/mozilla/plugins/
pascal@1653 39 }