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