Date: Friday, February 3, 2023 @ 00:36:03 Author: felixonmars Revision: 1392089
upgpkg: ruby-pycall 1.4.2-2 Modified: ruby-pycall/trunk/PKGBUILD ----------+ PKGBUILD | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-02-03 00:34:27 UTC (rev 1392088) +++ PKGBUILD 2023-02-03 00:36:03 UTC (rev 1392089) @@ -3,30 +3,27 @@ pkgname=ruby-pycall pkgver=1.4.2 -pkgrel=1 +_commit=2e48cfd1dcc0789b4453bc533930203162f84f61 +pkgrel=2 pkgdesc='Calling Python functions from the Ruby language' arch=(x86_64) url='https://github.com/mrkn/pycall.rb' license=(MIT) depends=(ruby python) -makedepends=(ruby-rake ruby-rake-compiler ruby-rspec) +makedepends=(git ruby-rake ruby-rake-compiler ruby-rspec ruby-pry ruby-pry-byebug) checkdepends=(python-numpy) options=(!emptydirs) -source=(https://github.com/mrkn/pycall.rb/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha512sums=('b7d1741b208f0a4206f95a0805c96b9e2c13d226950f5797559cd34fbb8b139ad81995bc18527a3539e02fca63e2dbd07dd57228edde52a3e0199598d716edd1') +source=(git+https://github.com/mrkn/pycall.rb.git#commit=$_commit) +sha512sums=('SKIP') prepare() { - cd pycall.rb-$pkgver - - # we build based on a tar archive, not a git repo - sed -r -e 's|git ls-files -z|find . -type f -not -path "*/\.git*" -printf "%P\\\\0"|' \ - -e '/rake-compiler-dock/d' -e '/launchy/d' -e '/"pry/d' \ - -i pycall.gemspec + cd pycall.rb + sed -r -e '/rake-compiler-dock/d' -e '/launchy/d' -i pycall.gemspec } build() { local _gemdir="$(gem env gemdir)" - cd pycall.rb-$pkgver + cd pycall.rb rake build gem install \ --local \ @@ -52,13 +49,12 @@ check() { local _gemdir="$(gem env gemdir)" - cd pycall.rb-$pkgver - GEM_HOME="tmp_install/$_gemdir" rake spec || echo "Tests failed" + cd pycall.rb + GEM_HOME="tmp_install/$_gemdir" rake spec } package() { - cd pycall.rb-$pkgver + cd pycall.rb cp -a tmp_install/* "$pkgdir"/ - install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ }
