wok view gecko-mediaplayer/receipt @ rev 11234
jnettop: update depends
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Nov 06 09:54:00 2011 +0000 (2011-11-06) |
parents | |
children | 11d7646fa237 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gecko-mediaplayer"
4 VERSION="1.0.0"
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 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
20 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
21 ./configure --prefix=/usr --sysconfdir=/etc \
22 --disable-schemas-install --without-gconf &&
23 make &&
24 make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
34 }
36 post_install()
37 {
38 echo -n "Processing post install commands..."
39 local root
40 root=$1
41 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
42 ln -s $i $root/usr/lib/firefox*/plugins
43 done
44 status
45 }
47 post_remove()
48 {
49 echo -n "Processing post remove commands..."
50 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
51 status
52 }