wok-next annotate gecko-mediaplayer/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 757d032c55c7
children
rev   line source
al@20534 1 # SliTaz package receipt v2.
pascal@11222 2
pascal@11222 3 PACKAGE="gecko-mediaplayer"
samuel_trassare@11942 4 VERSION="1.0.3"
pascal@11222 5 CATEGORY="multimedia"
al@20534 6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web \
al@20534 7 browser"
al@21020 8 MAINTAINER="devel@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
al@21020 10 WEB_SITE="https://code.google.com/archive/p/gecko-mediaplayer"
al@20534 11
pascal@11222 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11222 13 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL"
pascal@15000 14
pascal@15018 15 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev nspr-dev"
al@18734 16
al@20534 17 compile_rules() {
pascal@11222 18 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp
pascal@11222 19 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp
pascal@11585 20 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \
pascal@11585 21 src/np_entry.cpp src/npp_gate.cpp
al@20534 22
al@20534 23 ./configure \
samuel_trassare@11918 24 --disable-schemas-install \
samuel_trassare@11918 25 --without-gconf \
pascal@17670 26 CPPFLAGS="$CPPFLAGS -I/usr/include/nspr" \
samuel_trassare@11918 27 $CONFIGURE_ARGS &&
al@20534 28 make &&
al@21020 29 make DESTDIR=$install install
pascal@11222 30 }
pascal@11222 31
al@20534 32 genpkg_rules() {
pascal@11222 33 mkdir -p $fs/usr/lib
pascal@15000 34 cp -a $install/usr/lib/mozilla $fs/usr/lib
al@20534 35 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base"
al@20534 36 TAGS="player audio video browser"
pascal@11222 37 }
pascal@11222 38
al@20534 39 post_install() {
al@20534 40 for i in $(cd "$1"; ls usr/lib/mozilla/plugins/$PACKAGE*.so 2>/dev/null); do
pascal@18816 41 ln -s "/$i" "$1"/usr/lib/firefox*/plugins
al@18734 42 done
pascal@11222 43 }
pascal@11222 44
al@20534 45 post_remove() {
pascal@11222 46 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
pascal@11222 47 }