summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Reynolds2016-04-07 20:27:13 -0400
committerMax Reynolds2016-04-07 20:27:13 -0400
commitd2d6e6934395bce3bd2137fe22c6948093d8725a (patch)
treeddd281f99d94e9ad90fbebef9bf888e15a8eee2c
downloadaur-d2d6e6934395bce3bd2137fe22c6948093d8725a.tar.gz
Package upload
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD46
-rw-r--r--cournal.install15
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6d6acee752a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = cournal
+ pkgdesc = A collaborative note taking and journal application using a stylus.
+ pkgver = 20120726
+ pkgrel = 2
+ url = http://cournal-project.org/
+ install = cournal.install
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = mercurial
+ depends = python>=3.1
+ depends = gtk3>=3.2
+ depends = poppler-glib>=0.18
+ depends = gobject-introspection
+ depends = python-gobject
+ depends = python-zope-interface>=3.6
+ depends = hicolor-icon-theme
+ depends = desktop-file-utils
+ depends = intltool
+
+pkgname = cournal
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c2753c8c35c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Package for Cournal, http://cournal-project.org/
+# Maintainer: M.Reynolds <blackboxnetworkproject@gmail.com>
+# Contributer: Fabian Henze <flyser42@gmx.de>
+
+pkgname=cournal
+pkgver=20120726
+pkgrel=2
+pkgdesc='A collaborative note taking and journal application using a stylus.'
+arch=('any')
+license=('GPL3')
+url='http://cournal-project.org/'
+depends=('python>=3.1' 'gtk3>=3.2' 'poppler-glib>=0.18' 'gobject-introspection' 'python-gobject' 'python-zope-interface>=3.6' 'hicolor-icon-theme' 'desktop-file-utils' 'intltool')
+makedepends=('git' 'mercurial')
+source=()
+sha512sums=()
+install=cournal.install
+
+_gitroot='https://github.com/flyser/cournal.git'
+_gitname='cournal-git'
+
+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"
+
+ ./download-twisted.sh
+}
+
+package () {
+ cd "$srcdir/$_gitname-build"
+ install -d 755 "${pkgdir}"
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
diff --git a/cournal.install b/cournal.install
new file mode 100644
index 00000000000..d74afdd1178
--- /dev/null
+++ b/cournal.install
@@ -0,0 +1,15 @@
+# https://wiki.archlinux.org/index.php/Gnome_Package_Guidelines
+
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}