1 # Maintainer: Anatol Pomozov
7 pkgdesc='a Ruby binding of VTE.'
9 url=https://ruby-gnome2.osdn.jp/
11 depends=(vte3 ruby ruby-gtk3)
13 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
14 noextract=($_gemname-$pkgver.gem)
15 sha256sums=('51e208b67bbc6fcf8d60cf831c26603adca4279f45f194cbcb8d1cbea1ab8a23')
18 local _gemdir="$(ruby -e'puts Gem.default_dir')"
19 local _platform="$(gem env platform | cut -d':' -f2)"
20 local _extension_api_version="$(ruby -e'puts Gem.extension_api_version')"
21 gem install --ignore-dependencies --no-document --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir"/usr/bin $_gemname-$pkgver.gem
22 rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
23 install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/COPYING.LIB" "$pkgdir/usr/share/licenses/$pkgname/COPYING.LIB"