wok-next view gecko-mediaplayer/receipt @ rev 20567

xfe: update receipt; qt5: undo `fix math`
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 11 01:07:35 2018 +0300 (2018-04-11)
parents 486dbfc17892
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gecko-mediaplayer"
4 VERSION="1.0.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web \
7 browser"
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://code.google.com/p/gecko-mediaplayer/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL"
15 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev nspr-dev"
17 compile_rules() {
18 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
19 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
20 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
21 src/np_entry.cpp src/npp_gate.cpp
23 ./configure \
24 --disable-schemas-install \
25 --without-gconf \
26 CPPFLAGS="$CPPFLAGS -I/usr/include/nspr" \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 genpkg_rules() {
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/mozilla $fs/usr/lib
35 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base"
36 TAGS="player audio video browser"
37 }
39 post_install() {
40 for i in $(cd "$1"; ls usr/lib/mozilla/plugins/$PACKAGE*.so 2>/dev/null); do
41 ln -s "/$i" "$1"/usr/lib/firefox*/plugins
42 done
43 }
45 post_remove() {
46 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
47 }