From 3b99c42eb8ca744e86e4e17197b1bf10642c6785 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 25 Jun 2012 00:01:42 +0000 Subject: Mon Jun 25 00:01:41 UTC 2012 --- staging/xournal/PKGBUILD | 27 +++++++++++++++++++++++++++ staging/xournal/install | 13 +++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 staging/xournal/PKGBUILD create mode 100644 staging/xournal/install (limited to 'staging/xournal') diff --git a/staging/xournal/PKGBUILD b/staging/xournal/PKGBUILD new file mode 100644 index 000000000..aa89c0c26 --- /dev/null +++ b/staging/xournal/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 162197 2012-06-23 11:44:10Z bisson $ +# Maintainer: Gaetan Bisson + +pkgname=xournal +pkgver=0.4.6 +pkgrel=2 +pkgdesc='Notetaking and sketching application' +url='http://xournal.sourceforge.net/' +license=('GPL') +arch=('i686' 'x86_64') +depends=('libgnomecanvas' 'poppler-glib' 'shared-mime-info' 'desktop-file-utils' 'hicolor-icon-theme') +optdepends=('ghostscript: import PS/PDF files as bitmap backgrounds') +source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha1sums=('4ebe79e3df7155d2a09c341537a639ac2332d4c8') + +install=install + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr LIBS='-lm -lz' + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install desktop-install +} diff --git a/staging/xournal/install b/staging/xournal/install new file mode 100644 index 000000000..dfcb68374 --- /dev/null +++ b/staging/xournal/install @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-mime-database usr/share/mime &>/dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf