From 764b2aebbbb508f63213286150a1c09ee10968cd Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 23 Feb 2018 16:00:55 +0000 Subject: ruby-hpricot: initial inclusion. dep of ruby-ronn --- abs/extra/ruby-hpricot/PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 abs/extra/ruby-hpricot/PKGBUILD diff --git a/abs/extra/ruby-hpricot/PKGBUILD b/abs/extra/ruby-hpricot/PKGBUILD new file mode 100644 index 0000000..6b78783 --- /dev/null +++ b/abs/extra/ruby-hpricot/PKGBUILD @@ -0,0 +1,31 @@ +#$Id$ +# Maintainer: Anatol Pomozov +# Contributor: Andrea Scarpino +# Contributor: William Rea +# Contributor: +# Contributor: Alexsandr Pavlov + +_gemname=hpricot +pkgname=ruby-$_gemname +pkgver=0.8.6 +pkgrel=6 +pkgdesc='A swift, liberal HTML parser with a fantastic library' +arch=(x86_64) +url='http://code.whytheluckystiff.net/hpricot/' +license=(MIT) +depends=(ruby) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha1sums=('87ce2c17960a5e1d7ceaa16d0591ca6a28379ce0') + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" + find "$pkgdir/$_gemdir/extensions/" -name *.so -delete + rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/test" + install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" + + rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext" +} -- cgit v0.12