updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / whatweb-git / PKGBUILD
blobcc42530d68070ff64ec5e047c5cf8153ba3c0e08
2 pkgname=whatweb-git
3 pkgver=20111225
4 pkgrel=1
5 pkgdesc="Next generation web scanner that identifies what websites are running."
6 arch=('i686' 'x86_64')
7 conflicts=('whatweb')
8 url="http://www.morningstarsecurity.com/research/whatweb"
9 license=('GPL')
10 depends=('ruby1.8')
11 _gitroot="git://github.com/urbanadventurer/WhatWeb.git"
12 _gitname="whatweb"
14 build() {
15   cd ${srcdir}
16   msg "Connecting to GIT server...."
18   if [ -d "${srcdir}/${_gitname}" ] ; then
19     cd ${_gitname} && git pull --rebase
20   else
21     git clone ${_gitroot}  ${_gitname}
22   fi
24   msg "GIT checkout done or server timeout"
25   msg "Starting make..."
27   cd ${srcdir}/whatweb || return 1
28   sed -i 's/TODO //g' Makefile
29   make DESTDIR=$pkgdir    
30   sed 's#/usr/bin/env ruby#/opt/ruby1.8/bin/ruby#g' -i ${pkgdir}/usr/bin/whatweb
37 # vim:set ts=2 sw=2 et: