wok-6.x annotate gecko-mediaplayer/receipt @ rev 15000
Add some GPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 17:00:38 2013 +0000 (2013-08-10) |
parents | 85543915e825 |
children | fcb3b920dbb5 |
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@15000 | 8 LICENSE="GPL2" |
pascal@11222 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11222 | 10 WEB_SITE="http://code.google.com/p/gecko-mediaplayer/" |
pascal@11222 | 11 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL" |
pascal@11222 | 12 TAGS="player audio video browser" |
pascal@15000 | 13 |
pascal@15000 | 14 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base" |
pascal@15000 | 15 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev" |
pascal@11222 | 16 |
pascal@11222 | 17 # Rules to configure and make the package. |
pascal@11222 | 18 compile_rules() |
pascal@11222 | 19 { |
pascal@11222 | 20 cd $src |
pascal@11222 | 21 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp |
pascal@11222 | 22 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp |
pascal@11585 | 23 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \ |
pascal@11585 | 24 src/np_entry.cpp src/npp_gate.cpp |
samuel_trassare@11918 | 25 ./configure --prefix=/usr \ |
samuel_trassare@11918 | 26 --sysconfdir=/etc \ |
samuel_trassare@11918 | 27 --disable-schemas-install \ |
samuel_trassare@11918 | 28 --without-gconf \ |
samuel_trassare@11918 | 29 $CONFIGURE_ARGS && |
pascal@11222 | 30 make && |
pascal@15000 | 31 make DESTDIR=$DESTIDR install |
pascal@11222 | 32 |
pascal@11222 | 33 } |
pascal@11222 | 34 |
pascal@11222 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11222 | 36 genpkg_rules() |
pascal@11222 | 37 { |
pascal@11222 | 38 mkdir -p $fs/usr/lib |
pascal@15000 | 39 cp -a $install/usr/lib/mozilla $fs/usr/lib |
pascal@11222 | 40 |
pascal@11222 | 41 } |
pascal@11222 | 42 |
pascal@11222 | 43 post_install() |
pascal@11222 | 44 { |
pascal@11222 | 45 echo -n "Processing post install commands..." |
pascal@11222 | 46 local root |
pascal@11222 | 47 root=$1 |
pascal@11222 | 48 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
pascal@11222 | 49 ln -s $i $root/usr/lib/firefox*/plugins |
pascal@11222 | 50 done |
pascal@11222 | 51 status |
pascal@11222 | 52 } |
pascal@11222 | 53 |
pascal@11222 | 54 post_remove() |
pascal@11222 | 55 { |
pascal@11222 | 56 echo -n "Processing post remove commands..." |
pascal@11222 | 57 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11222 | 58 status |
pascal@11222 | 59 } |