summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ec7ffb479c48cc4487091051e7c103511c418af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Generated by gem2arch (https://github.com/anatol/gem2arch)
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Daichi Shinozaki <dsdseg@gmail.com>

_gemname=nanomsg
pkgname=ruby-$_gemname
pkgver=0.6.0
pkgrel=1
pkgdesc='Ruby binding for nanomsg. nanomsg library is a high-performance implementation of several "scalability protocols".'
arch=(i686 x86_64)
url='https://bitbucket.org/kschiess/nanomsg'
license=()
depends=(ruby)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('ee3077aede0b20c4fd25f221a2c1475af6a11998bfe07924ba325e62664740976ebd1a9ba5898e5e83e7570f7c92111dea8da0b660f1a8c0c1a002308ebdfcc7')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}