# Maintainer: Andrew Sun # Contributor: Contributor ("wookietreiber") _gemname=bindata pkgname=ruby-$_gemname pkgver=2.4.10 pkgrel=1 pkgdesc="Declarative way to read and write structured binary data" arch=('any') url="https://github.com/dmendel/bindata" license=('custom') depends=('ruby') makedepends=('ruby-rdoc' 'ruby-rake') options=(!emptydirs) source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem") noextract=($_gemname-$pkgver.gem) sha256sums=('798b5e3ec00e9d562243076b819c16b1e226eb176d5b7b5cd21417bc3589981a') package() { local _gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING" rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem" }