1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=ruby-sorted_set
5 _commit=3be5eb2c1a33cb78603abbfe423d188d355a240a
7 pkgdesc='Implements a variant of Set whose elements are sorted in ascending order'
9 url='https://github.com/knu/sorted_set'
11 depends=(ruby-set ruby-rbtree)
13 checkdepends=(ruby-rake ruby-test-unit)
15 source=(git+https://github.com/knu/sorted_set.git#commit=$_commit)
19 local _gemdir="$(gem env gemdir)"
21 gem build sorted_set.gemspec
25 --ignore-dependencies \
27 --install-dir "tmp_install/$_gemdir" \
28 --bindir "tmp_install/usr/bin" \
29 sorted_set-$pkgver.gem
30 find "tmp_install/$_gemdir/gems/" \
37 -iname "gem.build_complete" -o \
41 rm -r tmp_install/$_gemdir/cache
45 local _gemdir="$(gem env gemdir)"
47 GEM_HOME="tmp_install/$_gemdir" rake
52 cp -a tmp_install/* "$pkgdir"/
53 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/