From 411f9c979dbea7778cddfbf81e204b8628f07e39 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 8 Oct 2022 14:22:41 +0200 Subject: build-supprot/ruby-rake*-bootstrap: installing rake versions to /opt --- build-support/ruby-rake-bootstrap/PKGBUILD | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 build-support/ruby-rake-bootstrap/PKGBUILD (limited to 'build-support/ruby-rake-bootstrap') diff --git a/build-support/ruby-rake-bootstrap/PKGBUILD b/build-support/ruby-rake-bootstrap/PKGBUILD new file mode 100644 index 00000000..ab695547 --- /dev/null +++ b/build-support/ruby-rake-bootstrap/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Anatol Pomozov + +_gemname=rake +pkgname=ruby-$_gemname-bootstrap +pkgver=13.0.6 +pkgrel=1 +pkgdesc='Make-like build tool implemented in Ruby' +provides=(rake) +arch=(any) +url='https://ruby.github.io/rake/' +license=(MIT) +depends=(ruby) +options=(!emptydirs) +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha512sums=('9dbcd1ef4d93f4853b3da40b29890509bb260e13e5500f5a0502645ce762d6e50ee7dd6bd59d08d135868dab579e10344920ba246079cde7048e3510bd473ea2') + +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" +} + +# building with ruby-bootstrap in /opt/ruby-xxx, but install into /usr +# and depend on 'ruby' +makedepends+=(ruby-bootstrap) + +# install to bootstrap locatio /opt/ruby-xxx +eval "$( + declare -f package | \ + sed ' + /_gemdir/ a mkdir -p "${pkgdir}"/opt/ruby-bootstrap-3.0.4/bin + ' +)" + +unset check -- cgit v1.2.3-70-g09d2