wok view gecko-mediaplayer/receipt @ rev 5973

mirror-tools: add host scripts
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 08 19:48:39 2010 +0200 (2010-08-08)
parents ce6aa5307ddf
children 2e2182175d2f
line source
1 # SliTaz package receipt.
3 PACKAGE="gecko-mediaplayer"
4 VERSION="0.9.8"
5 CATEGORY="multimedia"
6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser"
7 MAINTAINER="jozee@slitaz.org"
8 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base"
9 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://code.google.com/p/gecko-mediaplayer/"
12 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL"
13 TAGS="player audio video browser"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr --sysconfdir=/etc \
20 --disable-schemas-install --without-gconf &&
21 make &&
22 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/lib
30 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
32 }
34 post_install()
35 {
36 echo -n "Processing post install commands..."
37 local root
38 root=$1
39 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
40 ln -s $i $root/usr/lib/firefox*/plugins
41 done
42 status
43 }
45 post_remove()
46 {
47 echo -n "Processing post remove commands..."
48 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
49 status
50 }