summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPumpkinCheshire2020-11-04 21:32:15 +1100
committerPumpkinCheshire2020-11-04 21:32:15 +1100
commit5f4aaccd8f31a2f8c94789eaabd7c879d8d996a3 (patch)
tree1377af67a2b4f95269efa6e45d5c85152b5f2b6f
parent6298d813416a85eb1049f9e57277cbecd31b16c0 (diff)
downloadaur-5f4aaccd8f31a2f8c94789eaabd7c879d8d996a3.tar.gz
add depends, replace patch with sed
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD30
2 files changed, 29 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 49700c2e32a..a9f32543ee3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,24 @@
pkgbase = whatweb-git
pkgdesc = Next generation web scanner that identifies what websites are running.
- pkgver = v0.4.9.r440.7885799c
+ pkgver = v0.5.3.r28.4257078b
pkgrel = 1
url = http://www.morningstarsecurity.com/research/whatweb
arch = i686
arch = x86_64
license = GPL
depends = ruby
+ depends = ruby-addressable
+ optdepends = ruby-rake: development test use
+ optdepends = ruby-rdoc: development test use
+ optdepends = ruby-minitest: development test use
+ optdepends = ruby-rubocop: development test use
+ optdepends = ruby-bundler-audit: development test use
+ optdepends = ruby-pry: debugging
provides = whatweb
conflicts = whatweb
replaces = whatweb
source = whatweb::git://github.com/urbanadventurer/WhatWeb.git
- source = patch
md5sums = SKIP
- md5sums = 0de7ce37f82d813e06275f6e08a41fa1
pkgname = whatweb-git
diff --git a/PKGBUILD b/PKGBUILD
index 9303b59f1a8..62cad3bff41 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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')
+