Package Details: ruby-mechanize 2.9.2-1

Git Clone URL: https://aur.archlinux.org/ruby-mechanize.git (read-only, click to copy)
Package Base: ruby-mechanize
Description: The Mechanize library is used for automating interaction with websites
Upstream URL: https://github.com/sparklemotion/mechanize
Licenses: MIT
Submitter: supermario
Maintainer: supermario
Last Packager: supermario
Votes: 3
Popularity: 0.89
First Submitted: 2016-01-08 02:43 (UTC)
Last Updated: 2024-01-17 12:03 (UTC)

Latest Comments

andreas_baumann commented on 2024-05-06 10:58 (UTC) (edited on 2024-05-06 10:59 (UTC) by andreas_baumann)

install is broken, had to change PKGBUILD to:

_gemname=mechanize
pkgname=ruby-$_gemname
pkgver=2.10.0
pkgrel=1
pkgdesc="The Mechanize library is used for automating interaction with websites"
arch=(any)
url=https://github.com/sparklemotion/mechanize
license=(MIT)
depends=(
  ruby
  ruby-addressable
  ruby-domain_name
  ruby-http-cookie
  ruby-mime-types
  ruby-net-http-digest_auth
  ruby-net-http-persistent
  ruby-nokogiri
  ruby-rubyntlm
  ruby-webrick
  ruby-webrobots
)
checkdepends=(ruby-rake ruby-minitest)
makedepends=(git rubygems ruby-rdoc)
options=(!emptydirs)
source=(git+https://github.com/sparklemotion/mechanize.git?tag=v${pkgver})
sha256sums=('SKIP')

prepare() {
  cd $_gemname
  sed -i 's/git ls-files/find/' ${_gemname}.gemspec
}

build() {
  cd $_gemname
  gem build ${_gemname}.gemspec
  gem install \
    --local \
    --verbose \
    --ignore-dependencies \
    --no-user-install \
    --install-dir "tmp_install/${_gemdir}" \
    --bindir "tmp_install/usr/bin" \
    "${_gemname}-${pkgver}.gem"
}

package() {
  cd $_gemname
  local _gemdir="$(gem env gemdir)"

  gem install \
    --ignore-dependencies \
    --no-user-install \
    -i "$pkgdir/$_gemdir" \
    -n "$pkgdir/usr/bin" \
    $_gemname-$pkgver.gem

  install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
  install -Dm0644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
}

check() {
  cd $_gemname
  local _gemdir="$(gem env gemdir)"
  GEM_HOME="tmp_install/${_gemdir}" rake test
}

# vim: set ts=2 sw=2 et:

<deleted-account> commented on 2020-08-14 12:56 (UTC)

Thanks for packaging! Please update to current version.