Date: Friday, March 19, 2021 @ 18:44:35 Author: felixonmars Revision: 894879
archrelease: copy trunk to community-staging-x86_64 Added: ruby-nokogiri/repos/community-staging-x86_64/ ruby-nokogiri/repos/community-staging-x86_64/PKGBUILD (from rev 894877, ruby-nokogiri/trunk/PKGBUILD) ----------+ PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) Copied: ruby-nokogiri/repos/community-staging-x86_64/PKGBUILD (from rev 894877, ruby-nokogiri/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2021-03-19 18:44:35 UTC (rev 894879) @@ -0,0 +1,25 @@ +# Generated by gem2arch (https://github.com/anatol/gem2arch) +# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> + +_gemname=nokogiri +pkgname=ruby-$_gemname +pkgver=1.11.2 +pkgrel=2 +pkgdesc='Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser' +arch=(x86_64) +url='https://nokogiri.org' +license=(MIT) +depends=(ruby ruby-mini_portile2 libxslt) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha1sums=('2133b9fea8fc5f64cd98b52e2f8ad22b4e026fb9') + +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 -- --use-system-libraries + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" + rm "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext/nokogiri"/{*.o,*.c,*.h} + install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE-DEPENDENCIES.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-DEPENDENCIES.md" + install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" +}