wok-6.x annotate xournal/receipt @ rev 15778
Up tazlito (5.1.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 09 18:06:52 2014 +0000 (2014-01-09) |
parents | 5a95db6bdc22 |
children | 533c0cab6960 |
rev | line source |
---|---|
paul@4634 | 1 # SliTaz package receipt. |
paul@4634 | 2 |
paul@4634 | 3 PACKAGE="xournal" |
monghitri@13952 | 4 VERSION="0.4.7" |
paul@4634 | 5 CATEGORY="utilities" |
paul@4634 | 6 SHORT_DESC="Notetaking application." |
meshca@12813 | 7 MAINTAINER="meshca@clarkson.edu" |
pascal@15000 | 8 LICENSE="GPL2" |
paul@4634 | 9 SUGGESTED="ghostscript" |
monghitri@13952 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@4634 | 11 WEB_SITE="http://xournal.sourceforge.net/" |
paul@4634 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
paul@4634 | 13 |
pascal@15000 | 14 DEPENDS="gtk+ libgnomecanvas poppler poppler-apps gcc-lib-base" |
pascal@15000 | 15 BUILD_DEPENDS="autoconf automake gtk+-dev libgnomecanvas libgnomecanvas-dev \ |
pascal@15000 | 16 poppler poppler-dev zlib-dev libart_lgpl-dev" |
pascal@15000 | 17 |
paul@4634 | 18 # Rules to configure and make the package. |
paul@4634 | 19 compile_rules() |
paul@4634 | 20 { |
paul@4634 | 21 cd $src |
meshca@12813 | 22 CFLAGS="$CFLAGS `pkg-config --cflags --libs gtk+-2.0` `pkg-config --libs x11` -lm -lz" |
monghitri@13952 | 23 # wget http://people.slitaz.org/~naitsirhc/xournal.patch && \ |
monghitri@13952 | 24 # patch -p1 -i xournal.patch && |
paul@4634 | 25 ./configure \ |
paul@4634 | 26 --prefix=/usr \ |
paul@4634 | 27 --infodir=/usr/share/info \ |
paul@4634 | 28 --mandir=/usr/share/man \ |
paul@4634 | 29 $CONFIGURE_ARGS && |
pascal@15000 | 30 make && make DESTDIR=$DESTDIR install && make DESTDIR=$DESTDIR desktop-install |
paul@4634 | 31 } |
paul@4634 | 32 |
paul@4634 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4634 | 34 genpkg_rules() |
paul@4634 | 35 { |
paul@4634 | 36 mkdir -p $fs/usr |
pascal@15000 | 37 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 38 cp -a $install/usr/share $fs/usr |
paul@4634 | 39 } |
paul@4634 | 40 |
paul@4634 | 41 post_install() |
paul@4634 | 42 { |
paul@4634 | 43 echo -n "Updating databases..." |
pascal@12196 | 44 chroot "$1/" update-desktop-database |
pascal@12196 | 45 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
pascal@12196 | 46 chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null |
paul@4634 | 47 status |
paul@4634 | 48 } |
paul@4634 | 49 |