Date: Wednesday, January 19, 2022 @ 17:30:55 Author: anatolik Revision: 1110512
archrelease: copy trunk to community-testing-x86_64 Added: ruby-nokogiri/repos/community-testing-x86_64/ ruby-nokogiri/repos/community-testing-x86_64/PKGBUILD (from rev 1110511, ruby-nokogiri/trunk/PKGBUILD) ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Copied: ruby-nokogiri/repos/community-testing-x86_64/PKGBUILD (from rev 1110511, ruby-nokogiri/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-01-19 17:30:55 UTC (rev 1110512) @@ -0,0 +1,30 @@ +# Generated by gem2arch (https://github.com/anatol/gem2arch) +# Maintainer: Anatol Pomozov <anatol.pomo...@gmail.com> + +_gemname=nokogiri +pkgname=ruby-$_gemname +pkgver=1.13.1 +pkgrel=1 +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=('c4eabacc6bbea04e7055b031b7df609afe9b44f9') + +package() { + local _gemdir="$(ruby -e'puts Gem.default_dir')" + local _platform="$(gem env platform | cut -d':' -f2)" + local _extension_api_version="$(ruby -e'puts Gem.extension_api_version')" + gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem -- --use-system-libraries + sed -r 's|~>|>=|g' -i "$pkgdir/$_gemdir/specifications/$_gemname-$pkgver.gemspec" + rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" \ + "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext/nokogiri"/{*.o,*.c,*.h} \ + "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext/nokogiri/Makefile" \ + "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" + 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" +}