wok-next view gecko-mediaplayer/receipt @ rev 21569
updated cryptopp (5.6.5 -> 8.2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jun 22 16:34:56 2020 +0100 (2020-06-22) |
parents | 757d032c55c7 |
children |
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="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://code.google.com/archive/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=$install 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 }