wok annotate xournal/receipt @ rev 13952

xournal: up to 4.7
author ernia <monghitri@aruba.it>
date Tue Jan 29 21:53:31 2013 +0000 (2013-01-29)
parents cd46d880e369
children 380ffe05937a
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@5008 8 DEPENDS="gtk+ libgnomecanvas poppler poppler-apps gcc-lib-base"
paul@4634 9 BUILD_DEPENDS="autoconf automake gtk+-dev libgnomecanvas libgnomecanvas-dev \
paul@4634 10 poppler poppler-dev zlib-dev libart_lgpl-dev"
paul@4634 11 SUGGESTED="ghostscript"
monghitri@13952 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@4634 13 WEB_SITE="http://xournal.sourceforge.net/"
paul@4634 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
paul@4634 15
paul@4634 16 # Rules to configure and make the package.
paul@4634 17 compile_rules()
paul@4634 18 {
paul@4634 19 cd $src
meshca@12813 20 CFLAGS="$CFLAGS `pkg-config --cflags --libs gtk+-2.0` `pkg-config --libs x11` -lm -lz"
monghitri@13952 21 # wget http://people.slitaz.org/~naitsirhc/xournal.patch && \
monghitri@13952 22 # patch -p1 -i xournal.patch &&
paul@4634 23 ./configure \
paul@4634 24 --prefix=/usr \
paul@4634 25 --infodir=/usr/share/info \
paul@4634 26 --mandir=/usr/share/man \
paul@4634 27 $CONFIGURE_ARGS &&
meshca@12813 28 make && make DESTDIR=$PWD/_pkg install && make DESTDIR=$PWD/_pkg desktop-install
paul@4634 29 }
paul@4634 30
paul@4634 31 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4634 32 genpkg_rules()
paul@4634 33 {
paul@4634 34 mkdir -p $fs/usr
paul@4634 35 cp -a $_pkg/usr/bin $fs/usr
paul@4634 36 cp -a $_pkg/usr/share $fs/usr
paul@4634 37 }
paul@4634 38
paul@4634 39 post_install()
paul@4634 40 {
paul@4634 41 echo -n "Updating databases..."
pascal@12196 42 chroot "$1/" update-desktop-database
pascal@12196 43 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
pascal@12196 44 chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null
paul@4634 45 status
paul@4634 46 }
paul@4634 47