wok-current view xournal/receipt @ rev 24272

updated perltidy (20200110 -> 20211029)
author Hans-G?nter Theisgen
date Sun Jan 02 10:48:51 2022 +0100 (2022-01-02)
parents ad86373a4a8c
children 7dd01dedad38
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="http://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 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/files_name_h/!d;/xournal/!d;s|.*binaries/||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 CFLAGS="$CFLAGS `pkg-config --cflags --libs gtk+-2.0` `pkg-config --libs x11` -lm -lz"
31 # wget http://people.slitaz.org/~naitsirhc/xournal.patch && \
32 # patch -p1 -i xournal.patch &&
34 ./configure \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install &&
41 make DESTDIR=$DESTDIR desktop-install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/icons $fs/usr/share
51 cp -a $install/usr/share/xournal $fs/usr/share
52 }