wok annotate xine-plugin/receipt @ rev 24937
Up iptraf (3.0.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 14 08:53:05 2022 +0000 (2022-04-14) |
parents | 9e01bc6321ea |
children | d765616e1f3d |
rev | line source |
---|---|
pascal@1653 | 1 # SliTaz package receipt. |
pascal@1653 | 2 |
pascal@1653 | 3 PACKAGE="xine-plugin" |
pascal@1653 | 4 VERSION="1.0.2" |
pascal@1653 | 5 CATEGORY="multimedia" |
pascal@1653 | 6 SHORT_DESC="Xine media player firefox plugin." |
pascal@1653 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@1653 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@1653 | 10 WEB_SITE="http://www.xinehq.de/" |
pascal@1653 | 11 WGET_URL="http://switch.dl.sourceforge.net/sourceforge/xine/$TARBALL" |
pascal@1653 | 12 |
pascal@15000 | 13 DEPENDS="xine-lib firefox" |
pascal@15000 | 14 BUILD_DEPENDS="xine-lib xine-lib-dev xorg-dev" |
pascal@15000 | 15 |
pascal@24353 | 16 # What is the latest version available today? |
pascal@24353 | 17 current_version() |
pascal@24353 | 18 { |
pascal@24353 | 19 wget -O - https://sourceforge.net/projects/xine/files/xine-plugin/ 2>/dev/null | \ |
pascal@24353 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24353 | 21 sed '/scope="row/!d;s|.*/xine-plugin/||;s|/.*||;q' |
pascal@24353 | 22 } |
pascal@24353 | 23 |
pascal@1653 | 24 # Rules to configure and make the package. |
pascal@1653 | 25 compile_rules() |
pascal@1653 | 26 { |
pascal@1653 | 27 cd $src |
pascal@15264 | 28 mkdir -p $DESTDIR/root/.mozilla/plugins |
pascal@1653 | 29 ./configure --prefix=/usr \ |
pascal@1653 | 30 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1653 | 31 make && |
pascal@15000 | 32 make DESTDIR=$DESTDIR install |
pascal@1653 | 33 } |
pascal@1653 | 34 |
pascal@1653 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1653 | 36 genpkg_rules() |
pascal@1653 | 37 { |
pascal@1653 | 38 mkdir -p $fs/usr/share/xine |
pascal@15629 | 39 find $install -name xineplugin.so -exec cp -a {} $fs/usr/share/xine \; |
pascal@1653 | 40 } |
pascal@1653 | 41 |
pascal@1653 | 42 # Pre and post install commands for Tazpkg. |
pascal@1653 | 43 post_install() |
pascal@1653 | 44 { |
pascal@18730 | 45 ln -s /usr/share/xine/xineplugin.so "$1"/usr/lib/firefox-*/plugins/ |
pascal@18730 | 46 ln -s /usr/share/xine/xineplugin.so "$1/usr/lib/mozilla/plugins/" |
pascal@1653 | 47 } |