updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fwts-git / PKGBUILD
blob595662330a0be638a63ec498e74da46a4b854f30
2 # Pimper : M0Rf30
4 pkgname=fwts-git
5 pkgver=20110706
6 pkgrel=1
7 pkgdesc="The FirmWare Test Suite (fwts) is a tool to do automatic testing of a PC's firmware"
8 arch=('i686' 'x86_64')
9 url="http://smackerelofopinion.blogspot.com/2010/08/firmware-test-suite-biosacpi-health.html"
10 license=('GPL')
11 depends=('pcre' 'json-c')
12 makedepends=('automake' 'autoconf')
17 _gitroot="git://kernel.ubuntu.com/cking/fwts/.git
19 _gitname="fwts"
21 build() {
22         msg "Connecting to GIT server...."
24         
25         [ -d $_gitname ] && {
26                 cd $_gitname
27                 git pull origin
28                 cd ..
30                 msg "Local files have been updated."
31         } || {
32                 git clone $_gitroot
33         }
35         msg "GIT checkout done or server timeout"
37         rm -rf $_gitname-build
38         git clone $_gitname $_gitname-build
39         cd $_gitname-build
41         msg "Starting make..."
43         ./configure --prefix=/usr 
44         make || return 1
45         make DESTDIR=$pkgdir install
46