summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f29670cb79bd91fac09173c0a74d3867c065155 (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
25
# Maintainer: Ankit R Gadiya <arch@argp.in>
# Contributor: Benjamin Chr├ętien <chretien dot b plus aur at gmail dot com>

pkgname=ruby-html-proofer
pkgver=3.9.3
pkgrel=1
pkgdesc='Test your rendered HTML files to make sure they are accurate'
arch=(any)
url='https://github.com/gjtorikian/html-proofer'
license=('MIT')
depends=('ruby' 'ruby-mercenary' 'ruby-nokogiri' 'ruby-colorize' 'ruby-typhoeus' 'ruby-yell' 'ruby-parallel' 'ruby-addressable' 'ruby-activesupport')
options=(!emptydirs)
source=("https://rubygems.org/downloads/html-proofer-${pkgver}.gem"
        "LICENSE")
noextract=("html-proofer-${pkgver}.gem")
sha1sums=('94c1f6dca8c3be5a23c7e9492a70fd9ec951f72d'
          'f90727a909db39508bcfdcfff6e9c225a295dc8a')

package() {
    local _gemdir="$(ruby -e'puts Gem.default_dir')"
    gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "html-proofer-${pkgver}.gem"
    rm "${pkgdir}/${_gemdir}/cache/html-proofer-${pkgver}.gem"

    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}