diff options
author | PumpkinCheshire | 2020-11-04 21:32:15 +1100 |
---|---|---|
committer | PumpkinCheshire | 2020-11-04 21:32:15 +1100 |
commit | 5f4aaccd8f31a2f8c94789eaabd7c879d8d996a3 (patch) | |
tree | 1377af67a2b4f95269efa6e45d5c85152b5f2b6f /PKGBUILD | |
parent | 6298d813416a85eb1049f9e57277cbecd31b16c0 (diff) | |
download | aur-5f4aaccd8f31a2f8c94789eaabd7c879d8d996a3.tar.gz |
add depends, replace patch with sed
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -1,7 +1,9 @@ +# Maintainer PumpkinCheshire <sollyonzou@gmail.com> # Maintainer: robertfoster pkgname=whatweb-git -pkgver=v0.4.9.r440.7885799c +_name=whatweb +pkgver=v0.5.3.r28.4257078b pkgrel=1 pkgdesc="Next generation web scanner that identifies what websites are running." arch=('i686' 'x86_64') @@ -10,20 +12,30 @@ conflicts=('whatweb') provides=('whatweb') url="http://www.morningstarsecurity.com/research/whatweb" license=('GPL') -depends=('ruby') -source=("whatweb::git://github.com/urbanadventurer/WhatWeb.git" -patch) +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') +source=("whatweb::git://github.com/urbanadventurer/WhatWeb.git") +md5sums=('SKIP') + +prepare() { + cd $_name + sed -i '/bundle install/d' Makefile + sed -i "s|require 'lib/whatweb'|require '/usr/share/whatweb/lib/whatweb'|" whatweb +} package() { - cd whatweb - patch -Np1 -i ../patch + cd $_name make DESTDIR=$pkgdir install } pkgver() { - cd whatweb + cd $_name printf "%s" "$(git describe --tags --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } -md5sums=('SKIP' -'0de7ce37f82d813e06275f6e08a41fa1') + |