summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e873001aaa68697328dfa984385a22b3d45864ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer: Benjamin Chrétien <chretien dot b plus aur at gmail dot com>

_gemname=html-proofer
pkgname=ruby-$_gemname
pkgver=3.0.2
pkgrel=1
pkgdesc='A set of tests to validate your HTML output. These tests check if your image references are legitimate, if they have alt tags, if your internal links are working, and so on. It'\''s intended to be an all-in-one checker for your documentation output.'
arch=(any)
url='https://github.com/gjtorikian/html-proofer'
license=(MIT)
depends=(ruby ruby-mercenary ruby-nokogiri ruby-colored ruby-typhoeus-0 ruby-yell ruby-parallel ruby-addressable ruby-activesupport)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha1sums=('66ae85ec941720fb8b6fdd9bc2774a68579e22e3')

package() {
  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
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"

  chmod a+x "$pkgdir/usr/bin/htmlproofer"
}