summaryrefslogtreecommitdiff
path: root/testing/xournal
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-26 00:01:48 +0000
committerroot <root@rshg054.dnsready.net>2012-06-26 00:01:48 +0000
commit9a6b691757346035549dbd12d1323301d04a6675 (patch)
tree5e06d2322b58a73254a0ca2c05d2083cb0209db2 /testing/xournal
parent3b99c42eb8ca744e86e4e17197b1bf10642c6785 (diff)
Tue Jun 26 00:01:48 UTC 2012
Diffstat (limited to 'testing/xournal')
-rw-r--r--testing/xournal/PKGBUILD27
-rw-r--r--testing/xournal/install13
2 files changed, 40 insertions, 0 deletions
diff --git a/testing/xournal/PKGBUILD b/testing/xournal/PKGBUILD
new file mode 100644
index 000000000..4ef0d66a8
--- /dev/null
+++ b/testing/xournal/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD 162297 2012-06-24 19:25:38Z foutrelis $
+# Maintainer: Gaetan Bisson <bisson@archlinux.org>
+
+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/testing/xournal/install b/testing/xournal/install
new file mode 100644
index 000000000..dfcb68374
--- /dev/null
+++ b/testing/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
+}