wok-6.x view xine-plugin/receipt @ rev 25432
motion: adapted configuration parameters to version 4.4.0
author | Hans-G?nter Theisgen |
---|---|
date | Sun Aug 21 17:07:48 2022 +0100 (24 months ago) |
parents | 3105f866bc3e |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xine-plugin"
4 VERSION="1.0.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Xine media player firefox plugin."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.xinehq.de/"
11 WGET_URL="$SF_MIRROR/xine/$TARBALL"
13 DEPENDS="xine-lib firefox"
14 BUILD_DEPENDS="xine-lib xine-lib-dev xorg-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/xine/files/xine-plugin/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/xine-plugin/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 mkdir -p $DESTDIR/root/.mozilla/plugins
29 ./configure --prefix=/usr \
30 --mandir=/usr/share/man $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share/xine
39 find $install -name xineplugin.so -exec cp -a {} $fs/usr/share/xine \;
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 ln -s /usr/share/xine/xineplugin.so "$1"/usr/lib/firefox-*/plugins/
46 ln -s /usr/share/xine/xineplugin.so "$1/usr/lib/mozilla/plugins/"
47 }