2021-07-28 07:25:56 +00:00
|
|
|
# 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
|
2021-08-24 22:22:30 +00:00
|
|
|
pkgver=1.20.2
|
|
|
|
pkgrel=1
|
2021-07-28 07:25:56 +00:00
|
|
|
pkgdesc="Ruby: parallel processing made simple and fast"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/grosser/parallel"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('ruby')
|
2021-08-24 22:22:30 +00:00
|
|
|
makedepends=('ruby-rdoc')
|
2021-07-28 07:25:56 +00:00
|
|
|
options=('!emptydirs')
|
|
|
|
source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
|
|
|
|
noextract=("$_gemname-$pkgver.gem")
|
2021-08-24 22:22:30 +00:00
|
|
|
b2sums=('28fad0b8428159b4a6eec8af4dcca7785fec749698257ebaebdf564673518d5ebcc4d85c4b99521d4f76d104136c823fe66c61ec081915f7450cef5710f80163')
|
2021-07-28 07:25:56 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
local _gemdir="$(ruby -e'puts Gem.default_dir')"
|
|
|
|
|
|
|
|
gem install \
|
2021-08-24 22:22:30 +00:00
|
|
|
--verbose \
|
2021-07-28 07:25:56 +00:00
|
|
|
--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
|
|
|
|
}
|