wok-next diff lyx/receipt @ rev 21047

Up tazpkg (971), cookutils (1095)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Nov 26 21:15:05 2018 +0200 (2018-11-26)
parents 9dc05d12ebef
children 5669e8b3be70
line diff
     1.1 --- a/lyx/receipt	Wed Nov 01 17:54:23 2017 +0100
     1.2 +++ b/lyx/receipt	Mon Nov 26 21:15:05 2018 +0200
     1.3 @@ -3,53 +3,46 @@
     1.4  PACKAGE="lyx"
     1.5  VERSION="2.0.5.1"
     1.6  CATEGORY="office"
     1.7 -SHORT_DESC="An advanced WYSIWYM document processor & LaTeX front-end"
     1.8 -MAINTAINER="gokhlayeh@slitaz.org"
     1.9 +SHORT_DESC="Advanced WYSIWYM document processor & LaTeX front-end"
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11  LICENSE="GPL2"
    1.12 -WEB_SITE="http://www.lyx.org"
    1.13 +WEB_SITE="https://www.lyx.org/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.16  WGET_URL="ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/$TARBALL"
    1.17  
    1.18  BUILD_DEPENDS="python Qt4-dev bison aspell-dev xorg-libX11-dev aiksaurus-dev \
    1.19  zlib-dev"
    1.20 -SPLIT="lyx lyx-dev lyx-examples lyx-locales"
    1.21 +SPLIT="$PACKAGE-doc $PACKAGE-examples $PACKAGE-locales $PACKAGE"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	./configure --with-frontend=qt4 $CONFIGURE_ARGS &&
    1.27 +compile_rules() {
    1.28 +	./configure \
    1.29 +		--with-frontend=qt4 \
    1.30 +		$CONFIGURE_ARGS &&
    1.31  	make &&
    1.32  	make -j1 install
    1.33  }
    1.34  
    1.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 -genpkg_rules()
    1.37 -{
    1.38 +genpkg_rules() {
    1.39  	case $PACKAGE in
    1.40 -	lyx)
    1.41 -		DEPENDS="aiksaurus aspell bzlib libQtGui python"
    1.42 -		mkdir -p $fs/usr/share
    1.43 -		cp -a $install/usr/bin $fs/usr
    1.44 -		cp -a $install/usr/share/lyx $fs/usr/share
    1.45 -		rm -r $fs/usr/share/lyx/doc $fs/usr/share/lyx/examples
    1.46 -		;;
    1.47 -	lyx-doc)
    1.48 -		CAT="office|Documentation for LyX"
    1.49 -		DEPENDS="lyx"
    1.50 -		mkdir -p $fs/usr/share/lyx
    1.51 -		cp -a $install/usr/share/lyx/doc $fs/usr/share/lyx
    1.52 -		;;
    1.53 -	lyx-examples)
    1.54 -		CAT="officer|Examples for LyX"
    1.55 -		DEPENDS="lyx"
    1.56 -		mkdir -p $fs/usr/share/lyx
    1.57 -		cp -a $install/usr/share/lyx/examples $fs/usr/share/lyx
    1.58 -		;;
    1.59 -	lyx-locales)
    1.60 -		CAT="localization|Locale files for LyX"
    1.61 -		DEPENDS="lyx"
    1.62 -		mkdir -p $fs/usr/share
    1.63 -		cp -a $install/usr/share/locale $fs/usr/share
    1.64 -		;;
    1.65 +		*-doc)
    1.66 +			copy usr/share/lyx/doc/
    1.67 +			CAT="office|documentation"
    1.68 +			DEPENDS="lyx"
    1.69 +			;;
    1.70 +		*-examples)
    1.71 +			copy usr/share/lyx/examples/
    1.72 +			CAT="officer|examples"
    1.73 +			DEPENDS="lyx"
    1.74 +			;;
    1.75 +		*-locales)
    1.76 +			copy locale/
    1.77 +			CAT="localization|locale files"
    1.78 +			DEPENDS="lyx"
    1.79 +			;;
    1.80 +		lyx)
    1.81 +			copy @std @rm
    1.82 +			DEPENDS="aiksaurus aspell bzlib libQtGui python"
    1.83 +			;;
    1.84  	esac
    1.85  }