summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aeca58ca55d79c83d21a370be63eb25f11aeca25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com>

_gemname=mechanize
pkgname=ruby-$_gemname
pkgver=2.7.6
pkgrel=1
pkgdesc='The Mechanize library is used for automating interaction with websites.'
arch=('any')
url='http://docs.seattlerb.org/mechanize/'
license=('MIT')
options=(!emptydirs)
noextract=($_gemname-$pkgver.gem)
depends=('ruby' 'ruby-domain_name' 'ruby-http-cookie' 'ruby-mime-types' 'ruby-net-http-digest_auth' 'ruby-net-http-persistent' 'ruby-nokogiri' 'ruby-ntlm-http' 'ruby-webrobots' rubygems ruby-rdoc)
makedepends=('rubygems')
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
sha256sums=('3d3318db3c66a27721b7cfcb0924464887e2737b6c120d401f0f196df6270301')

package() {
  cd "$srcdir"
  local _gemdir="$(ruby -e'puts Gem.default_dir')"

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