summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--.githash_i6861
-rw-r--r--.githash_x86_641
-rw-r--r--PKGBUILD36
4 files changed, 14 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7755fe5a186..c6ffb917b50 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = kvirtual-git
pkgdesc = KDE4 GUI-frontend for kvm/qemu emulator
- pkgver = 20121103
+ pkgver = 20120603.v1.1.1-3-g9609fc8
pkgrel = 1
url = http://kde-apps.org/content/show.php/KVirtual?content=150682
arch = i686
@@ -13,6 +13,8 @@ pkgbase = kvirtual-git
depends = qemu
provides = kvirtual
conflicts = kvirtual
+ source = kvirtual::git://github.com/didier13150/kvirtual.git
+ md5sums = SKIP
pkgname = kvirtual-git
diff --git a/.githash_i686 b/.githash_i686
new file mode 100644
index 00000000000..752616ca7fd
--- /dev/null
+++ b/.githash_i686
@@ -0,0 +1 @@
+9609fc8ef18ba33c6bd5f94a2408733edfc76abf
diff --git a/.githash_x86_64 b/.githash_x86_64
new file mode 100644
index 00000000000..752616ca7fd
--- /dev/null
+++ b/.githash_x86_64
@@ -0,0 +1 @@
+9609fc8ef18ba33c6bd5f94a2408733edfc76abf
diff --git a/PKGBUILD b/PKGBUILD
index 52a8890deda..4908639c2ec 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,9 @@
+# vim:set ft=sh:
# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
pkgname=kvirtual-git
-pkgver=20121103
+_gitname="kvirtual"
+pkgver=20120603.v1.1.1-3-g9609fc8
pkgrel=1
pkgdesc="KDE4 GUI-frontend for kvm/qemu emulator"
arch=('i686' 'x86_64')
@@ -11,32 +13,15 @@ depends=('kdebase-runtime' 'qemu')
makedepends=('git' 'cmake' 'automoc4')
provides=('kvirtual')
conflicts=('kvirtual')
-source=()
-
-if [ -e .githash_$CARCH ] ; then
- _gitphash=$(cat .githash_$CARCH)
-else
- _gitphash=""
-fi
+source=("$_gitname::git://github.com/didier13150/kvirtual.git")
+md5sums=('SKIP')
-_gitname="kvirtual"
-_gitroot="git://github.com/didier13150/kvirtual.git"
+pkgver() {
+ cd "$srcdir/$_gitname"
+ echo $(git log -1 --format="%ci" | sed 's/.*\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\).*/\1\2\3/').$(git describe --always )
+}
build() {
- if [ -d $srcdir/$_gitname/.git ] ; then
- ( cd $srcdir/$_gitname && git pull origin )
- msg "The local files are updated."
- else
- ( git clone --depth 1 $_gitroot $_gitname )
- fi
- msg "GIT checkout done or server timeout"
-
- cd $_gitname
- if [ "$_gitphash" == $(git show | grep -m 1 commit | sed 's/commit //') ]; then
- msg "Git hash is the same as previous build"
- return 1
- fi
-
msg "creating build directory"
cd "$srcdir"
[ -d $_gitname-build ] && rm -rf $_gitname-build
@@ -50,7 +35,4 @@ build() {
package() {
cd "$_gitname-build"
make DESTDIR="$pkgdir" install
-
- cd "$srcdir/$_gitname"
- git show | grep -m 1 commit | sed 's/commit //' > "$startdir/.githash_$CARCH"
}