wok-next view xine-plugin/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 1f8d622f0165 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.xinehq.de/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/xine/$TARBALL"
14 BUILD_DEPENDS="shared-mime-info xine-lib xine-lib-dev xorg-dev gfortran"
16 compile_rules() {
17 mkdir -p $DESTDIR/root/.mozilla/plugins
19 ./configure $CONFIGURE_ARGS &&
20 fix libtool &&
21 make &&
22 make DESTDIR=$DESTDIR install || return 1
24 mkdir -p $install/usr/share/xine
25 # There's something different, don't know why
26 if [ -d $install/root ]; then
27 # in next64
28 echo "Found $install/root/.mozilla/plugins/"
29 mv $install/root/.mozilla/plugins/* $install/usr/share/xine/
30 rm -r $install/root/
31 else
32 # in next
33 echo "Found $install/.mozilla/plugins/"
34 mv $install/.mozilla/plugins/* $install/usr/share/xine/
35 rm -r $install/.mozilla
36 fi
37 }
39 genpkg_rules() {
40 copy *.so
41 DEPENDS="xine-lib firefox"
42 }
44 post_install() {
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 }