wok-next annotate xournal/receipt @ rev 13930

linux: update check_modules.sh
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 26 11:53:53 2013 +0100 (2013-01-26)
parents e8d08f2efa24
children 5a95db6bdc22
rev   line source
paul@4634 1 # SliTaz package receipt.
paul@4634 2
paul@4634 3 PACKAGE="xournal"
Christian@12883 4 VERSION="0.4.6"
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"
Christian@12883 12 TARBALL="$PACKAGE-0.4.5.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"
meshca@12813 21 wget http://people.slitaz.org/~naitsirhc/xournal.patch && \
meshca@12813 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