updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rt-tests-git / PKGBUILD
blobb6df884b7683c7bd86e42b5d39e92bc4379f2c1d
1 # Maintainer: Joakim Hernberg <jbh at alchemy dot lu>
2 pkgname=rt-tests-git
3 pkgver=20111214
4 pkgrel=1
5 pkgdesc="A collection of tools for testing the -rt patched kernel"
6 arch=(i686 x86_64)
7 url="http://rt.wiki.kernel.org/"
8 license=('GPL2')
9 depends=(python2 numactl)
10 makedepends=(git)
12 _gitroot="https://github.com/clrkwllms/rt-tests.git"
13 _gitname="rt-tests"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
32   sed 's/shell python/shell python2/g' -i Makefile
34   make
37 package() {
38   cd "$srcdir/$_gitname-build"
39   make prefix=/usr DESTDIR="$pkgdir/" install