wok-next annotate xine-plugin/receipt @ rev 20610

transmission: up 2.93
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 20:11:53 2018 +0300 (2018-04-19)
parents 1ff0133b1f8c
children 1f8d622f0165
rev   line source
al@20475 1 # SliTaz package receipt v2.
pascal@1653 2
pascal@1653 3 PACKAGE="xine-plugin"
pascal@1653 4 VERSION="1.0.2"
pascal@1653 5 CATEGORY="multimedia"
al@20475 6 SHORT_DESC="Xine media player Firefox plugin"
pascal@1653 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20475 9 WEB_SITE="http://www.xinehq.de/"
al@20475 10
pascal@1653 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20475 12 WGET_URL="$SF_MIRROR/xine/$TARBALL"
pascal@1653 13
al@20475 14 BUILD_DEPENDS="xine-lib xine-lib-dev xorg-dev gfortran"
pascal@15000 15
al@20475 16 compile_rules() {
pascal@15264 17 mkdir -p $DESTDIR/root/.mozilla/plugins
al@20604 18
al@20475 19 ./configure $CONFIGURE_ARGS &&
al@20604 20 fix libtool &&
pascal@1653 21 make &&
al@20475 22 make DESTDIR=$DESTDIR install || return 1
al@20475 23
al@20475 24 mkdir -p $install/usr/share/xine
al@20475 25 mv $install/root/.mozilla/plugins/* $install/usr/share/xine/
al@20475 26 rm -r $install/root/.mozilla/plugins/
pascal@1653 27 }
pascal@1653 28
al@20475 29 genpkg_rules() {
al@20475 30 copy *.so
al@20475 31 DEPENDS="xine-lib firefox"
pascal@1653 32 }
pascal@1653 33
al@20475 34 post_install() {
pascal@18730 35 ln -s /usr/share/xine/xineplugin.so "$1"/usr/lib/firefox-*/plugins/
pascal@18730 36 ln -s /usr/share/xine/xineplugin.so "$1/usr/lib/mozilla/plugins/"
pascal@1653 37 }