summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorM.Reynolds2016-05-20 18:53:04 -0400
committerM.Reynolds2016-05-20 18:53:04 -0400
commitf249e66af5da157fb200f6a713c891f68b90212a (patch)
tree5e2c9e43788325003d895026b58f2dd455782d41
parent930b49b84c9ddf37a1ebde381963b5bb91c9906e (diff)
downloadaur-f249e66af5da157fb200f6a713c891f68b90212a.tar.gz
Changed PKGBUILD to use modern makepkg git standard; Editied extra information from PKGBUILD; Editied dependency list; Changed package versioning scheme; Removed .install file for pacman hooks
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD46
2 files changed, 23 insertions, 38 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6d6acee752a..d3236210049 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,23 @@
pkgbase = cournal
pkgdesc = A collaborative note taking and journal application using a stylus.
- pkgver = 20120726
- pkgrel = 2
+ pkgver = r207.23392b8
+ pkgrel = 1
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 = python
+ depends = gtk3
+ depends = poppler-glib
depends = gobject-introspection
depends = python-gobject
- depends = python-zope-interface>=3.6
+ depends = python-zope-interface
depends = hicolor-icon-theme
depends = desktop-file-utils
depends = intltool
+ source = git+https://github.com/flyser/cournal.git
+ md5sums = SKIP
pkgname = cournal
diff --git a/PKGBUILD b/PKGBUILD
index a5c92afc636..3bf4d161676 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,31 @@
-# 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
+pkgver=r207.23392b8
+pkgrel=1
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')
+depends=('python' 'gtk3' 'poppler-glib' 'gobject-introspection' 'python-gobject'
+ 'python-zope-interface' 'hicolor-icon-theme' 'desktop-file-utils' 'intltool')
makedepends=('git' 'mercurial')
-source=()
-sha512sums=()
-install=cournal.install
+source=('git+https://github.com/flyser/cournal.git')
+md5sums=('SKIP')
-_gitroot='https://github.com/flyser/cournal.git'
-_gitname='cournal-git'
+pkgver () {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
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
+ cd "$srcdir/$pkgname"
+ ./download-twisted.sh
}
package () {
- cd "$srcdir/$_gitname-build"
- install -d 755 "${pkgdir}"
- python setup.py install --root="${pkgdir}" --optimize=1
+ cd "$srcdir/$pkgname"
+ install -d 755 "$pkgdir"
+ python setup.py install --root="$pkgdir" --optimize=1
}