diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..363fd082f35e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Tom Vincent <http://tlvince.com/contact/> +pkgname=ruby-w3c_validators +_pkgname=w3c_validators +pkgver=1.2 +pkgrel=1 +pkgdesc="A Ruby wrapper for the World Wide Web Consortium's online validation services." +arch=("any") +url="http://code.dunae.ca/w3c_validators/" +license=(GPL) +depends=("ruby" "ruby-json" "ruby-nokogiri") +source=("https://rubygems.org/downloads/${_pkgname}-${pkgver}.gem") +noextract=("${_pkgname}-${pkgver}.gem") +md5sums=('34cc66fc1f94957b68cca3f4a581947c') + +package() { + cd "${srcdir}" + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \ + $_pkgname-$pkgver.gem -n "$pkgdir/usr/bin" +} |