upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ruby-cucumber-cucumber-expressions / repos / community-any / PKGBUILD
blobff8f7597daaff5cef2313c855021b91ca23a7777
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-cucumber-cucumber-expressions
4 pkgver=16.1.2
5 _commit=2d1d8c65d5ddef8433f92d526bb16d638a86d433
6 pkgrel=2
7 pkgdesc="Cucumber Expressions - a simpler alternative to Regular Expressions"
8 arch=(any)
9 url='https://github.com/cucumber/cucumber-expressions/tree/main/ruby'
10 license=(MIT)
11 depends=(ruby)
12 makedepends=(git ruby-rake ruby-rspec)
13 options=(!emptydirs)
14 source=(git+https://github.com/cucumber/cucumber-expressions.git#commit=$_commit)
15 sha256sums=('SKIP')
17 build() {
18   local _gemdir="$(gem env gemdir)"
19   cd cucumber-expressions/ruby
20   gem build cucumber-cucumber-expressions.gemspec
21   gem install \
22     --local \
23     --verbose \
24     --ignore-dependencies \
25     --no-user-install \
26     --install-dir "tmp_install/$_gemdir" \
27     --bindir "tmp_install/usr/bin" \
28     cucumber-cucumber-expressions-$pkgver.gem
29   find "tmp_install/$_gemdir/gems/" \
30     -type f \
31     \( \
32         -iname "*.o" -o \
33         -iname "*.c" -o \
34         -iname "*.so" -o \
35         -iname "*.time" -o \
36         -iname "gem.build_complete" -o \
37         -iname "Makefile" \
38     \) \
39     -delete
40   rm -r tmp_install/$_gemdir/cache
43 check() {
44   local _gemdir="$(gem env gemdir)"
45   cd cucumber-expressions/ruby
46   GEM_HOME="tmp_install/$_gemdir" rake
49 package() {
50   cd cucumber-expressions/ruby
51   cp -a tmp_install/* "$pkgdir"/
52   install -Dm644 ../LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/