wok-current view xournal/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="xournal"
4 VERSION="0.4.8.2016"
5 CATEGORY="utilities"
6 SHORT_DESC="Notetaking application."
7 MAINTAINER="meshca@clarkson.edu"
8 LICENSE="GPL2"
9 WEB_SITE="https://xournal.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 TAGS="annotation pdf"
15 SUGGESTED="ghostscript"
16 DEPENDS="gcc-lib-base gtk+ libgnomecanvas poppler poppler-apps"
17 BUILD_DEPENDS="autoconf automake gtk+-dev libart_lgpl-dev
18 libgnomecanvas-dev poppler-dev zlib-dev"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
25 sed '/files_name_h/!d;/xournal/!d;s|.*binaries/||;s|/.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 CFLAGS="$CFLAGS `pkg-config --cflags --libs gtk+-2.0` `pkg-config --libs x11` -lm -lz"
32 # wget http://people.slitaz.org/~naitsirhc/xournal.patch && \
33 # patch -p1 -i xournal.patch &&
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install &&
42 make DESTDIR=$DESTDIR desktop-install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/share/icons $fs/usr/share
52 cp -a $install/usr/share/xournal $fs/usr/share
53 }