wok-stable annotate gecko-mediaplayer/receipt @ rev 11302
Up: x264 (with latest snapshot)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Nov 12 22:23:09 2011 +0000 (2011-11-12) |
parents | |
children | 11d7646fa237 |
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@11222 | 21 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@11222 | 22 --disable-schemas-install --without-gconf && |
pascal@11222 | 23 make && |
pascal@11222 | 24 make DESTDIR=$PWD/_pkg install |
pascal@11222 | 25 |
pascal@11222 | 26 } |
pascal@11222 | 27 |
pascal@11222 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11222 | 29 genpkg_rules() |
pascal@11222 | 30 { |
pascal@11222 | 31 mkdir -p $fs/usr/lib |
pascal@11222 | 32 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib |
pascal@11222 | 33 |
pascal@11222 | 34 } |
pascal@11222 | 35 |
pascal@11222 | 36 post_install() |
pascal@11222 | 37 { |
pascal@11222 | 38 echo -n "Processing post install commands..." |
pascal@11222 | 39 local root |
pascal@11222 | 40 root=$1 |
pascal@11222 | 41 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do |
pascal@11222 | 42 ln -s $i $root/usr/lib/firefox*/plugins |
pascal@11222 | 43 done |
pascal@11222 | 44 status |
pascal@11222 | 45 } |
pascal@11222 | 46 |
pascal@11222 | 47 post_remove() |
pascal@11222 | 48 { |
pascal@11222 | 49 echo -n "Processing post remove commands..." |
pascal@11222 | 50 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11222 | 51 status |
pascal@11222 | 52 } |