diff options
author | Thorsten Wißmann | 2015-08-25 17:00:47 +0200 |
---|---|---|
committer | Thorsten Wißmann | 2015-08-25 17:00:47 +0200 |
commit | 60fcc56d52ccf484bcc451ead0c497a912226d91 (patch) | |
tree | 7255f843178d05bc8448b3fc34c7c29ad6522782 | |
parent | da5cf0bc4c59111c3c5aa44a41398ecfecebea75 (diff) | |
download | aur-60fcc56d52ccf484bcc451ead0c497a912226d91.tar.gz |
Put git:// url as the source
So do not clone/pull the git manually in build().
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 13 insertions, 17 deletions
@@ -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 @@ -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 |