wok annotate lyx/receipt @ rev 13876
asterisk: use make -j 1
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 15 11:02:42 2013 +0100 (2013-01-15) |
parents | 3474ac7c6bdd |
children | c381a12e66ee |
rev | line source |
---|---|
gokhlayeh@7033 | 1 # SliTaz package receipt. |
gokhlayeh@7033 | 2 |
gokhlayeh@7033 | 3 PACKAGE="lyx" |
slaxemulator@8499 | 4 VERSION="1.6.9" |
gokhlayeh@7033 | 5 CATEGORY="office" |
gokhlayeh@7033 | 6 SHORT_DESC="An advanced open-source document processor." |
gokhlayeh@7033 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
gokhlayeh@7033 | 8 DEPENDS="qt4 python perl imagemagick aspell aiksaurus" |
gokhlayeh@8924 | 9 BUILD_DEPENDS="Qt4-dev" |
gokhlayeh@7033 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
gokhlayeh@7033 | 11 WEB_SITE="http://www.lyx.org" |
gokhlayeh@7033 | 12 WGET_URL="ftp://ftp.lyx.org/pub/lyx/stable/1.6.x/$TARBALL" |
gokhlayeh@7033 | 13 |
gokhlayeh@7033 | 14 # Rules to configure and make the package. |
gokhlayeh@7033 | 15 compile_rules() |
gokhlayeh@7033 | 16 { |
gokhlayeh@7033 | 17 cd $src |
pascal@13845 | 18 sed -i 's|.*define STRFWD_H.*|&\n#include <stdlib.h>|' src/support/strfwd.h |
pascal@13845 | 19 sed -i 's|.*<algorithm>.*|#include <cstddef>\n&|' src/support/weighted_btree.h |
gokhlayeh@11573 | 20 ./configure --with-frontend=qt4 $CONFIGURE_ARGS && |
gokhlayeh@8924 | 21 make && make -j1 install |
gokhlayeh@7033 | 22 } |
gokhlayeh@7033 | 23 |
gokhlayeh@7033 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@7033 | 25 genpkg_rules() |
gokhlayeh@7033 | 26 { |
pascal@13839 | 27 mkdir -p $fs/usr/share/applications |
pascal@13839 | 28 cp -a $install/usr/bin $fs/usr |
pascal@13839 | 29 cp -a $install/usr/share/lyx $fs/usr/share |
pascal@13839 | 30 cp -a $stuff/lyx.desktop $fs/usr/share/applications |
gokhlayeh@7033 | 31 rm -r $fs/usr/share/lyx/doc $fs/usr/share/lyx/examples |
gokhlayeh@7033 | 32 } |
gokhlayeh@7033 | 33 |