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>
|
|
|
|
|
2022-06-13 21:36:32 +00:00
|
|
|
pkgname=ruby-parallel
|
|
|
|
_gemname="${pkgname#ruby-}"
|
|
|
|
pkgver=1.22.1
|
2021-08-24 22:22:30 +00:00
|
|
|
pkgrel=1
|
2022-06-13 21:36:32 +00:00
|
|
|
pkgdesc='Ruby: parallel processing made simple and fast'
|
2021-07-28 07:25:56 +00:00
|
|
|
arch=('any')
|
2022-06-13 21:36:32 +00:00
|
|
|
url='https://github.com/grosser/parallel'
|
2021-07-28 07:25:56 +00:00
|
|
|
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")
|
2022-06-13 21:36:32 +00:00
|
|
|
sha512sums=('b8e611cac5608d27e9d9d264575b2150af45240ef4503389b4a8d73443df0d8f8ca8a96f71e17208a84956aee47cc436eed80103f277d218444c3891167559eb')
|
|
|
|
b2sums=('96b84e236b222d2571a6bb463c91509fd33590e3d7634bf7be8e45c523fa29f5c3f7b7bf797c86b4faf0a93085469a5dbdb92fbb13382d739777ddb5b27e73d9')
|
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 \
|
2021-09-13 07:25:58 +00:00
|
|
|
--no-document \
|
2021-07-28 07:25:56 +00:00
|
|
|
--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
|
2021-09-13 07:25:58 +00:00
|
|
|
|
|
|
|
# generate reproducible documentation
|
|
|
|
install -vd "$pkgdir/$_gemdir/doc/$_gemname-$pkgver"
|
|
|
|
cd "$pkgdir/$_gemdir/gems/$_gemname-$pkgver"
|
|
|
|
rdoc \
|
|
|
|
--format ri \
|
|
|
|
--output "$pkgdir$_gemdir/doc/$_gemname-$pkgver/ri" \
|
|
|
|
./lib
|
|
|
|
# delete unnecessary rdoc metadata file
|
|
|
|
rm -f "$pkgdir$_gemdir/doc/$_gemname-$pkgver/ri/created.rid"
|
2021-07-28 07:25:56 +00:00
|
|
|
}
|