1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Contributor: Maxime Gauduin <alucryd@archlinux.org>
3 # Contributor: Julien Nicoulaud <julien.nicoulaud@gmail.com>
4 # Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
7 _pkgname="${pkgname#ruby-}"
10 pkgdesc='All the stuff that is not good/big enough for a real library'
12 url='https://github.com/flori/tins'
14 depends=('ruby' 'ruby-sync')
15 makedepends=('git' 'ruby-rake')
16 options=('!emptydirs')
17 _commit='6e1d4309ae4bd0e7b0e21280336732a2f51311e2'
18 source=("$pkgname::git+$url#commit=$_commit")
24 git describe --tags | sed 's/^v//'
30 gem build tins.gemspec
36 local _gemdir="$(ruby -e'puts Gem.default_dir')"
41 --ignore-dependencies \
43 --install-dir "$pkgdir/$_gemdir" \
44 --bindir "$pkgdir/usr/bin" \
45 "$_pkgname-$pkgver.gem"
48 rm -rf "$pkgdir/$_gemdir/cache"
51 install -vd "$pkgdir/usr/share/licenses/$pkgname"
52 ln -sf "$_gemdir/gems/$_pkgname-$pkgver/COPYING" "$pkgdir/usr/share/licenses/$pkgname"