wok annotate gecko-mediaplayer/receipt @ rev 14822

Up: libxfce4ui* (4.19.0)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Jul 17 13:48:02 2013 +0200 (2013-07-17)
parents 0256f038018f
children 380ffe05937a
rev   line source
pascal@11222 1 # SliTaz package receipt.
pascal@11222 2
pascal@11222 3 PACKAGE="gecko-mediaplayer"
samuel_trassare@11942 4 VERSION="1.0.3"
pascal@11222 5 CATEGORY="multimedia"
pascal@11222 6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser"
pascal@11222 7 MAINTAINER="jozee@slitaz.org"
pascal@11222 8 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base"
pascal@11222 9 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev"
pascal@11222 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11222 11 WEB_SITE="http://code.google.com/p/gecko-mediaplayer/"
pascal@11222 12 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL"
pascal@11222 13 TAGS="player audio video browser"
pascal@11222 14
pascal@11222 15 # Rules to configure and make the package.
pascal@11222 16 compile_rules()
pascal@11222 17 {
pascal@11222 18 cd $src
pascal@11222 19 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
pascal@11222 20 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
pascal@11585 21 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
pascal@11585 22 src/np_entry.cpp src/npp_gate.cpp
samuel_trassare@11918 23 ./configure --prefix=/usr \
samuel_trassare@11918 24 --sysconfdir=/etc \
samuel_trassare@11918 25 --disable-schemas-install \
samuel_trassare@11918 26 --without-gconf \
samuel_trassare@11918 27 $CONFIGURE_ARGS &&
pascal@11222 28 make &&
pascal@11222 29 make DESTDIR=$PWD/_pkg install
pascal@11222 30
pascal@11222 31 }
pascal@11222 32
pascal@11222 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11222 34 genpkg_rules()
pascal@11222 35 {
pascal@11222 36 mkdir -p $fs/usr/lib
pascal@11222 37 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
pascal@11222 38
pascal@11222 39 }
pascal@11222 40
pascal@11222 41 post_install()
pascal@11222 42 {
pascal@11222 43 echo -n "Processing post install commands..."
pascal@11222 44 local root
pascal@11222 45 root=$1
pascal@11222 46 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
pascal@11222 47 ln -s $i $root/usr/lib/firefox*/plugins
pascal@11222 48 done
pascal@11222 49 status
pascal@11222 50 }
pascal@11222 51
pascal@11222 52 post_remove()
pascal@11222 53 {
pascal@11222 54 echo -n "Processing post remove commands..."
pascal@11222 55 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
pascal@11222 56 status
pascal@11222 57 }