summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin2012-11-01 16:01:40 +0100
committerFlorian Bruhin2012-11-01 16:01:40 +0100
commitb100877d9ecb5f49c36ef9521d20426ffdd291dc (patch)
tree2fef5fa72dc414a8f09b45801e34400b7bbe41d7
downloadaur-b100877d9ecb5f49c36ef9521d20426ffdd291dc.tar.gz
Initial commit
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD49
-rw-r--r--xournal.install13
3 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dcd3bd32e65
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = xournal-git
+ pkgdesc = Notetaking and sketching application
+ pkgver = 20120913
+ pkgrel = 1
+ url = http://sourceforge.net/projects/xournal/
+ install = xournal.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = gettext
+ depends = libgnomecanvas>=2.30.1
+ depends = shared-mime-info
+ depends = poppler-glib>=0.14.0
+ depends = hicolor-icon-theme
+ depends = desktop-file-utils
+ depends = gtk2
+ optdepends = ghostscript: import PS/PDF files as bitmap backgrounds
+ provides = xournal
+ conflicts = xournal
+ conflicts = xournal-image-patched
+ conflicts = xournalpp-svn
+
+pkgname = xournal-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eca43dc1bdf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
+
+pkgname=xournal-git
+pkgver=20120913
+pkgrel=1
+pkgdesc="Notetaking and sketching application"
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/xournal/"
+license=('GPL')
+depends=('libgnomecanvas>=2.30.1' 'shared-mime-info' 'poppler-glib>=0.14.0'
+ 'hicolor-icon-theme' 'desktop-file-utils' 'gtk2')
+makedepends=('git' 'gettext')
+optdepends=('ghostscript: import PS/PDF files as bitmap backgrounds')
+provides=('xournal')
+conflicts=('xournal' 'xournal-image-patched' 'xournalpp-svn')
+install=xournal.install
+
+_gitroot=git://xournal.git.sourceforge.net/gitroot/xournal/xournal
+_gitname=xournal
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+
+ autoreconf -i
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ make DESTDIR="${pkgdir}" install desktop-install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/xournal.install b/xournal.install
new file mode 100644
index 00000000000..dfcb6837421
--- /dev/null
+++ b/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
+}