wok-stable view gecko-mediaplayer/receipt @ rev 11841

perl-http-date: Sync with wok-tank.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Feb 27 01:11:13 2012 -0500 (2012-02-27)
parents b165a9b3b8c3
children 0256f038018f
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 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
22 src/np_entry.cpp src/npp_gate.cpp
23 ./configure --prefix=/usr --sysconfdir=/etc \
24 --disable-schemas-install --without-gconf &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
36 }
38 post_install()
39 {
40 echo -n "Processing post install commands..."
41 local root
42 root=$1
43 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
44 ln -s $i $root/usr/lib/firefox*/plugins
45 done
46 status
47 }
49 post_remove()
50 {
51 echo -n "Processing post remove commands..."
52 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
53 status
54 }