wok-current annotate gecko-mediaplayer/receipt @ rev 11742
wireshark: remove extension for desktop file
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Tue Feb 21 17:05:50 2012 -0800 (2012-02-21) |
parents | b165a9b3b8c3 |
children | 0256f038018f |
rev | line source |
---|---|
pascal@11222 | 1 # SliTaz package receipt. |
pascal@11222 | 2 |
pascal@11222 | 3 PACKAGE="gecko-mediaplayer" |
pascal@11222 | 4 VERSION="1.0.0" |
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 |
pascal@11222 | 23 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@11222 | 24 --disable-schemas-install --without-gconf && |
pascal@11222 | 25 make && |
pascal@11222 | 26 make DESTDIR=$PWD/_pkg install |
pascal@11222 | 27 |
pascal@11222 | 28 } |
pascal@11222 | 29 |
pascal@11222 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11222 | 31 genpkg_rules() |
pascal@11222 | 32 { |
pascal@11222 | 33 mkdir -p $fs/usr/lib |
pascal@11222 | 34 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib |
pascal@11222 | 35 |
pascal@11222 | 36 } |
pascal@11222 | 37 |
pascal@11222 | 38 post_install() |
pascal@11222 | 39 { |
pascal@11222 | 40 echo -n "Processing post install commands..." |
pascal@11222 | 41 local root |
pascal@11222 | 42 root=$1 |
pascal@11222 | 43 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
pascal@11222 | 44 ln -s $i $root/usr/lib/firefox*/plugins |
pascal@11222 | 45 done |
pascal@11222 | 46 status |
pascal@11222 | 47 } |
pascal@11222 | 48 |
pascal@11222 | 49 post_remove() |
pascal@11222 | 50 { |
pascal@11222 | 51 echo -n "Processing post remove commands..." |
pascal@11222 | 52 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11222 | 53 status |
pascal@11222 | 54 } |