# Template file for 'xournal'
pkgname=xournal
version=0.4.6
revision=1
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu-configure
make_install_args="desktop-install"
makedepends="autoconf automake pkg-config gtk+-devel
libgnomecanvas-devel>=2.30.3_1 poppler-glib-devel zlib-devel ghostscript-devel"
fulldepends="hicolor-icon-theme desktop-file-utils ghostscript"
short_desc="Xournal: GPL Notetaking, sketching, and journal-keeping."
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://xournal.sourceforge.net/"
license="GPL-2"
checksum=ec9008b49569514a9d12b810a8b92ef2c1c56590c964db66c2245d85f4eab058
long_desc="
 Xournal is an application for notetaking, sketching, keeping a journal using
 a stylus. It is free software (GNU GPL) and runs on Linux (recent
 distributions) and other GTK+/GNOME platforms. It is similar to Microsoft
 Windows Journal or to other alternatives such as Jarnal, Gournal, and
 NoteLab.
 
 Xournal aims to provide superior graphical quality (subpixel resolution) and
 overall functionality.
 
 Supports PDF import and export."

gtk_iconcache_dirs="/usr/share/icons/hicolor"

pre_configure() {
	sed -i -e "s|lX11|lX11 -lm -lz|" src/Makefile.am
	./autogen.sh
}
