# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=ruby-xdg pkgver=6.6.2 pkgrel=2 pkgdesc="xdg base directory standard library for ruby" url="https://www.alchemists.io/projects/xdg/" arch="noarch" license="Hippocratic-2.1" depends="ruby" checkdepends="ruby-rake ruby-bundler" options="!check" # requires bundler-leak source="$pkgname-$pkgver.tar.gz::https://github.com/bkuhlmann/xdg/archive/refs/tags/$pkgver.tar.gz gemspec-remove-signing.patch " builddir="$srcdir/xdg-$pkgver" build() { gem build xdg.gemspec } check() { rspec } package() { local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')" gem install \ --local \ --install-dir "$gemdir" \ --bindir "$pkgdir/usr/bin" \ --ignore-dependencies \ --no-document \ --verbose \ xdg rm -r "$gemdir"/cache \ "$gemdir"/extensions \ "$gemdir"/doc } sha512sums=" 4a35d03d6deaa6faf16229d6f5a96dcb25181a14f4a95f9022d91b04684cd1257f88517dbaa2185424f92d9bf87359a3d8b5251c7b61520efb3371640f894eab ruby-xdg-6.6.2.tar.gz 21bafa54362def7ecfaacb97403f762afc6e22da8963ab58d0da9bb88ef5e3fb11d8bc2cec970ba547b4b3d601dc853ac02e980abb9b593cd4441a3a33e205fe gemspec-remove-signing.patch "