wok annotate xournal/receipt @ rev 25638

Up tinyssh (20240101 CVE-2023-48795)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 05 10:31:44 2024 +0000 (10 months ago)
parents cec9f8f5726d
children
rev   line source
paul@4634 1 # SliTaz package receipt.
paul@4634 2
paul@4634 3 PACKAGE="xournal"
pascal@24147 4 VERSION="0.4.8.2016"
paul@4634 5 CATEGORY="utilities"
paul@4634 6 SHORT_DESC="Notetaking application."
meshca@12813 7 MAINTAINER="meshca@clarkson.edu"
pascal@15000 8 LICENSE="GPL2"
pascal@25460 9 WEB_SITE="https://xournal.sourceforge.net/"
Hans-G?nter@22304 10
pascal@24147 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
paul@4634 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@24147 13 TAGS="annotation pdf"
paul@4634 14
Hans-G?nter@22304 15 SUGGESTED="ghostscript"
Hans-G?nter@22304 16 DEPENDS="gcc-lib-base gtk+ libgnomecanvas poppler poppler-apps"
Hans-G?nter@22304 17 BUILD_DEPENDS="autoconf automake gtk+-dev libart_lgpl-dev
Hans-G?nter@22304 18 libgnomecanvas-dev poppler-dev zlib-dev"
pascal@15000 19
pascal@25461 20 # What is the latest version available today?
pascal@24108 21 current_version()
pascal@24108 22 {
pascal@24108 23 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
pascal@25607 24 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24108 25 sed '/files_name_h/!d;/xournal/!d;s|.*binaries/||;s|/.*||;q'
pascal@24108 26 }
pascal@24108 27
paul@4634 28 # Rules to configure and make the package.
paul@4634 29 compile_rules()
paul@4634 30 {
meshca@12813 31 CFLAGS="$CFLAGS `pkg-config --cflags --libs gtk+-2.0` `pkg-config --libs x11` -lm -lz"
monghitri@13952 32 # wget http://people.slitaz.org/~naitsirhc/xournal.patch && \
monghitri@13952 33 # patch -p1 -i xournal.patch &&
Hans-G?nter@22304 34
Hans-G?nter@22304 35 ./configure \
Hans-G?nter@22304 36 --prefix=/usr \
Hans-G?nter@22304 37 --infodir=/usr/share/info \
Hans-G?nter@22304 38 --mandir=/usr/share/man \
paul@4634 39 $CONFIGURE_ARGS &&
Hans-G?nter@22304 40 make &&
Hans-G?nter@22304 41 make DESTDIR=$DESTDIR install &&
Hans-G?nter@22304 42 make DESTDIR=$DESTDIR desktop-install
paul@4634 43 }
paul@4634 44
paul@4634 45 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@4634 46 genpkg_rules()
paul@4634 47 {
al@17261 48 mkdir -p $fs/usr/share
al@17261 49
Hans-G?nter@22304 50 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22304 51 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@22304 52 cp -a $install/usr/share/xournal $fs/usr/share
paul@4634 53 }