archrelease: copy trunk to community-any
[ArchLinux/community.git] / ruby-vte3 / trunk / PKGBUILD
blob2d0fbd57f8d9464401bda2250d4209136edc48c6
1 # Maintainer: Anatol Pomozov
3 _gemname=vte3
4 pkgname=ruby-$_gemname
5 pkgver=4.1.2
6 pkgrel=1
7 pkgdesc='a Ruby binding of VTE.'
8 arch=(x86_64)
9 url=https://ruby-gnome2.osdn.jp/
10 license=("LGPL-2.1+")
11 depends=(vte3 ruby ruby-gtk3)
12 options=(!emptydirs)
13 source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
14 noextract=($_gemname-$pkgver.gem)
15 sha256sums=('51e208b67bbc6fcf8d60cf831c26603adca4279f45f194cbcb8d1cbea1ab8a23')
17 package() {
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"