summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82f15302ec33e9e322e4fc320bff5e6dff48f460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: pumpkincheshire <sollyonzou@gmail.com>
# Contributor: robertfoster

pkgname=whatweb
_name=WhatWeb
pkgver=0.5.5
pkgrel=1
pkgdesc="Next generation web scanner that identifies what websites are running."
arch=('x86_64')
url="http://www.morningstarsecurity.com/research/whatweb"
license=('GPL')
provides=('whatweb')
depends=('ruby' 'ruby-addressable')
optdepends=('ruby-rake: development test use'
    'ruby-rdoc: development test use'
    'ruby-minitest: development test use'
    'ruby-rubocop: development test use'
    'ruby-bundler-audit: development test use'
    'ruby-pry: debugging')
conflicts=('whatweb-git')
source=("https://github.com/urbanadventurer/WhatWeb/archive/v$pkgver.tar.gz")
sha256sums=('96dedb6a377184fb8f5fd3f2a81c26ff8c92c4dc1503ce409793a1e7ab23695d')

prepare() {
    cd "$srcdir/$_name-$pkgver"
    sed -i '/bundle install/d' Makefile
    sed -i "s|require 'lib/whatweb'|require '/usr/share/whatweb/lib/whatweb'|" whatweb
}

package() {
    cd "$srcdir/$_name-$pkgver"
    make DESTDIR=$pkgdir install
}