wok-stable diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gecko-mediaplayer/receipt Sat Nov 12 22:23:09 2011 +0000 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gecko-mediaplayer" 1.7 +VERSION="1.0.0" 1.8 +CATEGORY="multimedia" 1.9 +SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser" 1.10 +MAINTAINER="jozee@slitaz.org" 1.11 +DEPENDS="gnome-mplayer dbus-glib gcc-lib-base" 1.12 +BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://code.google.com/p/gecko-mediaplayer/" 1.15 +WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL" 1.16 +TAGS="player audio video browser" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp 1.23 + sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp 1.24 + ./configure --prefix=/usr --sysconfdir=/etc \ 1.25 + --disable-schemas-install --without-gconf && 1.26 + make && 1.27 + make DESTDIR=$PWD/_pkg install 1.28 + 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs/usr/lib 1.35 + cp -a $_pkg/usr/lib/mozilla $fs/usr/lib 1.36 + 1.37 +} 1.38 + 1.39 +post_install() 1.40 +{ 1.41 + echo -n "Processing post install commands..." 1.42 + local root 1.43 + root=$1 1.44 + for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do 1.45 + ln -s $i $root/usr/lib/firefox*/plugins 1.46 + done 1.47 + status 1.48 +} 1.49 + 1.50 +post_remove() 1.51 +{ 1.52 + echo -n "Processing post remove commands..." 1.53 + rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so 1.54 + status 1.55 +}