summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--.gitignore5
-rw-r--r--AUR1
-rw-r--r--PKGBUILD53
-rw-r--r--README.md4
5 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bfd831dfc16
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = kvirtual
+ pkgdesc = KDE4 GUI-frontend for kvm/qemu emulator
+ pkgver = 20120506
+ pkgrel = 1
+ url = http://kde-apps.org/content/show.php/KVirtual?content=150682
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ makedepends = automoc4
+ depends = kdebase-runtime
+ depends = qemu
+
+pkgname = kvirtual
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3e1a5bb6ae1
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+src
+pkg
+*.log
+*.log.*
+*.pkg.tar.?z
diff --git a/AUR b/AUR
new file mode 100644
index 00000000000..ff94650b8eb
--- /dev/null
+++ b/AUR
@@ -0,0 +1 @@
+emulators
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..65a2cfb3018
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+
+pkgname=kvirtual
+pkgver=20120506
+pkgrel=1
+pkgdesc="KDE4 GUI-frontend for kvm/qemu emulator"
+arch=('i686' 'x86_64')
+url="http://kde-apps.org/content/show.php/KVirtual?content=150682"
+license=('GPL2')
+depends=('kdebase-runtime' 'qemu')
+makedepends=('git' 'cmake' 'automoc4')
+source=()
+
+if [ -e .githash_$CARCH ] ; then
+ _gitphash=$(cat .githash_$CARCH)
+else
+ _gitphash=""
+fi
+
+_gitname="kvirtual"
+_gitroot="git://github.com/didier13150/kvirtual.git"
+
+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
+ mkdir $_gitname-build
+
+ msg "Starting make..."
+ cd $_gitname-build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ../$_gitname
+ make
+}
+package() {
+ cd "$_gitname-build"
+ make DESTDIR="$pkgdir" install
+
+ git show | grep -m 1 commit | sed 's/commit //' > "$startdir/.githash_$CARCH"
+}
diff --git a/README.md b/README.md
new file mode 100644
index 00000000000..9fc466e38bf
--- /dev/null
+++ b/README.md
@@ -0,0 +1,4 @@
+kvirtual-git
+========================================
+
+url = http://kde-apps.org/content/show.php/KVirtual?content=150682