30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
|
|
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
# Contributor: <stefanh-husmann@t-online.de>
|
|
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
|
|
|
|
_gemname=cool.io
|
|
pkgname=ruby-$_gemname
|
|
pkgver=1.7.1
|
|
pkgrel=2
|
|
pkgdesc='Simple evented I/O for Ruby'
|
|
arch=(x86_64)
|
|
url='https://github.com/tarcieri/cool.io'
|
|
license=(MIT)
|
|
depends=(ruby)
|
|
options=(!emptydirs)
|
|
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
|
|
noextract=($_gemname-$pkgver.gem)
|
|
sha1sums=('d2c62def6ba6bcc40c57baa25fd83f616629bafa')
|
|
|
|
package() {
|
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
|
gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
|
|
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
|
|
rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/ext"
|
|
# find "$pkgdir/$_gemdir/extensions/" -name *.so -delete
|
|
# rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/test"
|
|
install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
|
|
}
|