Date: Monday, October 1, 2018 @ 14:18:49 Author: anthraxx Revision: 388870
upgpkg: wpscan 1:3.3.1-1 Modified: wpscan/trunk/PKGBUILD ----------+ PKGBUILD | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-01 14:13:56 UTC (rev 388869) +++ PKGBUILD 2018-10-01 14:18:49 UTC (rev 388870) @@ -2,33 +2,28 @@ # Contributor: alexiobash < me (at) alexiobash (dot) com > pkgname=wpscan -pkgver=2.9.4 -pkgrel=2 +pkgver=3.3.1 +pkgrel=1 epoch=1 pkgdesc='Black box WordPress vulnerability scanner' url='http://wpscan.org' arch=('x86_64') license=('custom:WPScan') -depends=('ruby-bundler' 'libxslt' 'libyaml' 'curl') -makedepends=('unzip') +depends=('ruby-bundler' 'libxslt' 'libyaml' 'curl' 'libxml2') options=('!strip' '!emptydirs') install=wpscan.install -source=(${pkgname}-${pkgver}.tar.gz::https://github.com/wpscanteam/wpscan/archive/${pkgver}.tar.gz) -sha256sums=('ad066b48565e82208d5e0451891366f6a9b9a3648d149d14c83d00f4712094d3') -sha512sums=('1ca5fd2e8bc5a7a368576351bce465039a7fdcea33d4abe86a168dbd2725922ae40362264a2f71e0839435e5085a9ebe74415bd3d40c316e3b4d654122a87e67') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/wpscanteam/wpscan/archive/v${pkgver}.tar.gz) +sha256sums=('b4e0f31c591e9b55ee58a2675b7bc6dd31ad7fdfa1ded3c2da1fe72ce9fb0e05') +sha512sums=('1b0dc3cf8d3459c2ae6a189f0ec45fe8ca80cc22cdd55c6f2122d474259c373aeb1577d3d8f3a24b31f51160b5a3f73c36c6e9c64d272e066c1b106047bff7a2') prepare() { cd ${pkgname}-${pkgver} - unzip -o data.zip - rm data.zip - # replace cache location with local user share - sed "s|ROOT_DIR, 'cache'|ENV['HOME'] + '/.local/share/${pkgname}/cache'|" -i lib/common/common_helper.rb - sed "s|ROOT_DIR, 'log.txt'|ENV['HOME'] + '/.local/share/${pkgname}/log.txt'|" -i lib/common/common_helper.rb bundle config build.nokogiri --use-system-libraries } build() { cd ${pkgname}-${pkgver} + CFLAGS+=" -I/usr/include/libxml2" bundle install -j"$(nproc)" --path vendor/bundle --without development test } @@ -41,13 +36,13 @@ install -d "${pkgdir}/usr/bin" cat > "${pkgdir}/usr/bin/${pkgname}" << EOF #!/bin/sh -BUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/${pkgname}/${pkgname}.rb "\$@" +BUNDLE_GEMFILE=/opt/${pkgname}/Gemfile bundle exec ruby /opt/wpscan/bin/wpscan "\$@" EOF chmod 755 "${pkgdir}/usr/bin/${pkgname}" install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -Dm 644 CHANGELOG.md DISCLAIMER.md README.md -t "${pkgdir}/usr/share/doc/${pkgname}" - find "${pkgdir}" -name gem_make.out -delete + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + find "${pkgdir}" \( -name gem_make.out -or -name mkmf.log \) -delete } # vim: ts=2 sw=2 et: