wok-next diff xine-plugin/receipt @ rev 20475

Tiny edits: libsdl-mixer, scummvm, stella, syasokoban, sz81, tuxpaint, workerfm...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Mar 11 13:37:02 2018 +0200 (2018-03-11)
parents 9e01bc6321ea
children 10df65db91ad
line diff
     1.1 --- a/xine-plugin/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/xine-plugin/receipt	Sun Mar 11 13:37:02 2018 +0200
     1.3 @@ -1,39 +1,35 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="xine-plugin"
     1.8  VERSION="1.0.2"
     1.9  CATEGORY="multimedia"
    1.10 -SHORT_DESC="Xine media player firefox plugin."
    1.11 +SHORT_DESC="Xine media player Firefox plugin"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://www.xinehq.de/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WEB_SITE="http://www.xinehq.de/"
    1.18 -WGET_URL="http://switch.dl.sourceforge.net/sourceforge/xine/$TARBALL"
    1.19 +WGET_URL="$SF_MIRROR/xine/$TARBALL"
    1.20  
    1.21 -DEPENDS="xine-lib firefox"
    1.22 -BUILD_DEPENDS="xine-lib xine-lib-dev xorg-dev"
    1.23 +BUILD_DEPENDS="xine-lib xine-lib-dev xorg-dev gfortran"
    1.24  
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 -	cd $src
    1.29 +compile_rules() {
    1.30  	mkdir -p $DESTDIR/root/.mozilla/plugins
    1.31 -	./configure --prefix=/usr \
    1.32 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    1.33 +	./configure $CONFIGURE_ARGS &&
    1.34  	make &&
    1.35 -	make DESTDIR=$DESTDIR install
    1.36 +	make DESTDIR=$DESTDIR install || return 1
    1.37 +
    1.38 +	mkdir -p $install/usr/share/xine
    1.39 +	mv $install/root/.mozilla/plugins/* $install/usr/share/xine/
    1.40 +	rm -r $install/root/.mozilla/plugins/
    1.41  }
    1.42  
    1.43 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 -genpkg_rules()
    1.45 -{
    1.46 -	mkdir -p $fs/usr/share/xine
    1.47 -	find $install -name xineplugin.so -exec cp -a {} $fs/usr/share/xine \;
    1.48 +genpkg_rules() {
    1.49 +	copy *.so
    1.50 +	DEPENDS="xine-lib firefox"
    1.51  }
    1.52  
    1.53 -# Pre and post install commands for Tazpkg.
    1.54 -post_install()
    1.55 -{
    1.56 +post_install() {
    1.57  	ln -s /usr/share/xine/xineplugin.so "$1"/usr/lib/firefox-*/plugins/
    1.58  	ln -s /usr/share/xine/xineplugin.so "$1/usr/lib/mozilla/plugins/"
    1.59  }