wok-current annotate gecko-mediaplayer/receipt @ rev 24545
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 24 19:32:16 2022 +0000 (2022-02-24) |
parents | c49ffc024a6c |
children | 0f92b8cc8086 |
rev | line source |
---|---|
pascal@11222 | 1 # SliTaz package receipt. |
pascal@11222 | 2 |
pascal@11222 | 3 PACKAGE="gecko-mediaplayer" |
samuel_trassare@11942 | 4 VERSION="1.0.3" |
pascal@11222 | 5 CATEGORY="multimedia" |
pascal@11222 | 6 SHORT_DESC="Browser plugin that uses gnome-mplayer to play media in a web browser" |
pascal@11222 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@11222 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20689 | 10 WEB_SITE="https://sites.google.com/site/kdekorte2/gecko-mediaplayer" |
pascal@11222 | 11 WGET_URL="http://gecko-mediaplayer.googlecode.com/files/$TARBALL" |
pascal@11222 | 12 TAGS="player audio video browser" |
pascal@15000 | 13 |
pascal@15000 | 14 DEPENDS="gnome-mplayer dbus-glib gcc-lib-base" |
pascal@15018 | 15 BUILD_DEPENDS="firefox-dev dbus-dev dbus-glib-dev nspr-dev" |
al@18734 | 16 |
pascal@24545 | 17 # What is the latest version available today? |
pascal@24545 | 18 current_version() |
pascal@24545 | 19 { |
pascal@24545 | 20 wget -O - https://github.com/rstorelli/gecko-mediaplayer/tags 2>/dev/null | \ |
pascal@24545 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24545 | 22 } |
pascal@24545 | 23 |
pascal@11222 | 24 # Rules to configure and make the package. |
pascal@11222 | 25 compile_rules() |
pascal@11222 | 26 { |
pascal@11222 | 27 sed -i 's/utf8characters/UTF8Characters/g' src/*.cpp |
pascal@11222 | 28 sed -i 's|NPP_Initialize|//&|' src/np_entry.cpp |
pascal@11585 | 29 sed -i 's|char[\*\) ]*NP*_GetMIMEDescription(|const &|' src/npupp.h \ |
pascal@11585 | 30 src/np_entry.cpp src/npp_gate.cpp |
samuel_trassare@11918 | 31 ./configure --prefix=/usr \ |
samuel_trassare@11918 | 32 --sysconfdir=/etc \ |
samuel_trassare@11918 | 33 --disable-schemas-install \ |
samuel_trassare@11918 | 34 --without-gconf \ |
pascal@17670 | 35 CPPFLAGS="$CPPFLAGS -I/usr/include/nspr" \ |
samuel_trassare@11918 | 36 $CONFIGURE_ARGS && |
pascal@11222 | 37 make && |
pascal@15342 | 38 make DESTDIR=$DESTDIR install |
pascal@11222 | 39 } |
pascal@11222 | 40 |
pascal@11222 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11222 | 42 genpkg_rules() |
pascal@11222 | 43 { |
pascal@11222 | 44 mkdir -p $fs/usr/lib |
pascal@15000 | 45 cp -a $install/usr/lib/mozilla $fs/usr/lib |
pascal@11222 | 46 } |
pascal@11222 | 47 |
pascal@11222 | 48 post_install() |
pascal@11222 | 49 { |
pascal@18816 | 50 for i in $(cd "$1"; ls usr/lib/mozilla/plugins/$PACKAGE*.so 2> /dev/null); do |
pascal@18816 | 51 ln -s "/$i" "$1"/usr/lib/firefox*/plugins |
al@18734 | 52 done |
pascal@11222 | 53 } |
pascal@11222 | 54 |
pascal@11222 | 55 post_remove() |
pascal@11222 | 56 { |
pascal@11222 | 57 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so |
pascal@11222 | 58 } |