summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Wißmann2015-08-25 17:00:47 +0200
committerThorsten Wißmann2015-08-25 17:00:47 +0200
commit60fcc56d52ccf484bcc451ead0c497a912226d91 (patch)
tree7255f843178d05bc8448b3fc34c7c29ad6522782
parentda5cf0bc4c59111c3c5aa44a41398ecfecebea75 (diff)
downloadaur-60fcc56d52ccf484bcc451ead0c497a912226d91.tar.gz
Put git:// url as the source
So do not clone/pull the git manually in build().
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD26
2 files changed, 13 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ed2b1124517..c9e5e2fbca6c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = katarakt-git
pkgdesc = A simple PDF viewer with two layouts
- pkgver = 20130311
+ pkgver = r187.ce41e7a
pkgrel = 1
url = http://git.informatik.uni-erlangen.de/?p=katarakt
arch = i686
@@ -9,6 +9,8 @@ pkgbase = katarakt-git
makedepends = asciidoc
depends = qt4
depends = poppler-qt
+ source = git://git.informatik.uni-erlangen.de/katarakt
+ md5sums = SKIP
pkgname = katarakt-git
diff --git a/PKGBUILD b/PKGBUILD
index 2249988f52d3..f100db481e32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Contributor: thorsten w. <p@thorsten-wissmann.de>
pkgname=katarakt-git
-pkgver=20130311
+pkgver=r187.ce41e7a
pkgrel=1
pkgdesc="A simple PDF viewer with two layouts"
arch=('i686' 'x86_64')
@@ -11,24 +11,18 @@ optdepends=( )
makedepends=( asciidoc )
provides=( )
backup=( )
-source=( )
-md5sums=( )
-_gitroot="git://git.informatik.uni-erlangen.de/katarakt"
+source=( git://git.informatik.uni-erlangen.de/katarakt )
+md5sums=( SKIP )
_gitname="katarakt"
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
- cd $srcdir
- echo "Fetching source from GIT"
- if ! [ -d "$_gitname" ] ; then
- # if git dir does not exist yet
- # then clone git repo
- git clone "$_gitroot" || return 1
- cd "$_gitname"
- else
- # else pull sources
- cd "$_gitname" && git pull origin || return 1
- fi
- # compile
+ cd "$srcdir/${_gitname}"
qmake-qt4
make
a2x -f manpage -a "date=`date +%Y-%m-%d`" doc/katarakt.txt