39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
# Contributor: Mario Finelli <mario at finel dot li>
|
|
# Contributor: Benjamin Chrétien <chretien dot b plus aur at gmail dot com>
|
|
|
|
_gemname=parallel
|
|
pkgname=ruby-$_gemname
|
|
pkgver=1.20.2
|
|
pkgrel=1
|
|
pkgdesc="Ruby: parallel processing made simple and fast"
|
|
arch=('any')
|
|
url="https://github.com/grosser/parallel"
|
|
license=('MIT')
|
|
depends=('ruby')
|
|
makedepends=('ruby-rdoc')
|
|
options=('!emptydirs')
|
|
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
|
noextract=("$_gemname-$pkgver.gem")
|
|
b2sums=('28fad0b8428159b4a6eec8af4dcca7785fec749698257ebaebdf564673518d5ebcc4d85c4b99521d4f76d104136c823fe66c61ec081915f7450cef5710f80163')
|
|
|
|
package() {
|
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
|
|
|
gem install \
|
|
--verbose \
|
|
--ignore-dependencies \
|
|
--no-user-install \
|
|
--install-dir "$pkgdir/$_gemdir" \
|
|
--bindir "$pkgdir/usr/bin" \
|
|
"$_gemname-$pkgver.gem"
|
|
|
|
# delete cache
|
|
cd "$pkgdir/$_gemdir"
|
|
rm -vrf cache
|
|
|
|
# move license
|
|
cd "gems/$_gemname-$pkgver"
|
|
install -vd "$pkgdir/usr/share/licenses/$pkgname"
|
|
mv -vt "$pkgdir/usr/share/licenses/$pkgname" MIT-LICENSE.txt
|
|
}
|