wok view gecko-mediaplayer/receipt @ rev 12202

pm-utils: add CONFIG_FILES
author Dominique Corbex <domcox@slitaz.org>
date Mon Mar 26 20:38:28 2012 +0200 (2012-03-26)
parents 0256f038018f
children 380ffe05937a
line source
1 # SliTaz package receipt.
3 PACKAGE="gecko-mediaplayer"
4 VERSION="1.0.3"
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 \
24 --sysconfdir=/etc \
25 --disable-schemas-install \
26 --without-gconf \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
37 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
39 }
41 post_install()
42 {
43 echo -n "Processing post install commands..."
44 local root
45 root=$1
46 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
47 ln -s $i $root/usr/lib/firefox*/plugins
48 done
49 status
50 }
52 post_remove()
53 {
54 echo -n "Processing post remove commands..."
55 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
56 status
57 }