wok view gecko-mediaplayer/receipt @ rev 25251

updated python-xdg (0.26 -> 0.27)
author Hans-G?nter Theisgen
date Thu Jul 14 07:39:02 2022 +0100 (2022-07-14)
parents b9659e3c2111
children
line source
1 # SliTaz package receipt.
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 browser"
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://sites.google.com/site/kdekorte2/gecko-mediaplayer"
11 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
12 TAGS="player audio video browser"
14 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base"
15 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev nspr-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/rstorelli/gecko-mediaplayer/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
28 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
29 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
30 src/np_entry.cpp src/npp_gate.cpp
31 ./configure --prefix=/usr \
32 --sysconfdir=/etc \
33 --disable-schemas-install \
34 --without-gconf \
35 CPPFLAGS="$CPPFLAGS -I/usr/include/nspr" \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/mozilla $fs/usr/lib
46 }
48 post_install()
49 {
50 for i in $(cd "$1"; ls usr/lib/mozilla/plugins/$PACKAGE*.so 2> /dev/null); do
51 ln -s "/$i" "$1"/usr/lib/firefox*/plugins
52 done
53 }
55 post_remove()
56 {
57 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
58 }