wok annotate xine-plugin/receipt @ rev 25064

openvas-libraries, openvas-client: update gnutls calls
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 08 16:46:37 2022 +0000 (2022-06-08)
parents 3105f866bc3e
children 29df00e1e19d
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@24979 11 WGET_URL="$SF_MIRROR/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 }