wok-4.x annotate xournal/receipt @ rev 9974

linux: FIX config files (they was missing config and still i486 config)
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 18 19:11:35 2011 +0200 (2011-05-18)
parents 42db8f10c287
children 9c404c929ef1
rev   line source
paul@4634 1 # SliTaz package receipt.
paul@4634 2
paul@4634 3 PACKAGE="xournal"
paul@4634 4 VERSION="0.4.5"
paul@4634 5 CATEGORY="utilities"
paul@4634 6 SHORT_DESC="Notetaking application."
paul@4634 7 MAINTAINER="remy.carel@free.fr"
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"
paul@4634 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
paul@4634 20 ./configure \
paul@4634 21 --prefix=/usr \
paul@4634 22 --infodir=/usr/share/info \
paul@4634 23 --mandir=/usr/share/man \
paul@4634 24 $CONFIGURE_ARGS &&
paul@4634 25 make && make DESTDIR=$PWD/_pkg install
paul@4634 26 make DESTDIR=$PWD/_pkg desktop-install
paul@4634 27 }
paul@4634 28
paul@4634 29 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4634 30 genpkg_rules()
paul@4634 31 {
paul@4634 32 mkdir -p $fs/usr
paul@4634 33 cp -a $_pkg/usr/bin $fs/usr
paul@4634 34 cp -a $_pkg/usr/share $fs/usr
paul@4634 35 }
paul@4634 36
paul@4634 37 post_install()
paul@4634 38 {
paul@4634 39 echo -n "Updating databases..."
paul@4634 40 cp /usr/share/xournal/pixmaps/xournal.png /usr/share/pixmaps
paul@4634 41 sed -i 's/Icon=xournal/Icon=xournal.png/' /usr/share/applications/xournal.desktop
paul@4634 42 update-desktop-database
paul@4634 43 update-mime-database /usr/share/mime
paul@4634 44 gtk-update-icon-cache -f -t /usr/share/icons/hicolor 2>/dev/null
paul@4634 45 status
paul@4634 46 }
paul@4634 47