diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-02-23 16:00:55 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-02-23 16:00:55 (GMT) |
commit | 764b2aebbbb508f63213286150a1c09ee10968cd (patch) | |
tree | a0d8778fe608c84f926453816b02565bcd69cfaf | |
parent | 5a1149f15b0ed22595d0e82e49c92cb35476a9f4 (diff) | |
download | linhes_pkgbuild-764b2aebbbb508f63213286150a1c09ee10968cd.zip linhes_pkgbuild-764b2aebbbb508f63213286150a1c09ee10968cd.tar.gz linhes_pkgbuild-764b2aebbbb508f63213286150a1c09ee10968cd.tar.bz2 |
ruby-hpricot: initial inclusion. dep of ruby-ronn
-rw-r--r-- | abs/extra/ruby-hpricot/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
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 <anatol.pomozov@gmail.com> +# Contributor: Andrea Scarpino <bash.lnx@gmail.com> +# Contributor: William Rea <sillywilly@gmail.com> +# Contributor: <stefanh-husmann@t-online.de> +# Contributor: Alexsandr Pavlov <kidoz at mail dot ru> + +_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" +} |