1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
6 _commit=2e48cfd1dcc0789b4453bc533930203162f84f61
8 pkgdesc='Calling Python functions from the Ruby language'
10 url='https://github.com/mrkn/pycall.rb'
13 makedepends=(git ruby-rake ruby-rake-compiler ruby-rspec ruby-pry ruby-pry-byebug)
14 checkdepends=(python-numpy)
16 source=(git+https://github.com/mrkn/pycall.rb.git#commit=$_commit)
21 sed -r -e '/rake-compiler-dock/d' -e '/launchy/d' -i pycall.gemspec
25 local _gemdir="$(gem env gemdir)"
31 --ignore-dependencies \
33 --install-dir "tmp_install/$_gemdir" \
34 --bindir "tmp_install/usr/bin" \
35 pkg/pycall-$pkgver.gem
36 find "tmp_install/$_gemdir/gems/" \
43 -iname "gem.build_complete" -o \
47 rm -r "tmp_install/$_gemdir/"{cache,gems/pycall-$pkgver/ext}
51 local _gemdir="$(gem env gemdir)"
53 GEM_HOME="tmp_install/$_gemdir" rake spec
58 cp -a tmp_install/* "$pkgdir"/
59 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/