[arch-commits] Commit in (4 files)
Tim Meusel
bastelfreak at archlinux.org
Sat May 15 21:34:04 UTC 2021
Date: Saturday, May 15, 2021 @ 21:34:04
Author: bastelfreak
Revision: 934802
add ruby27-rake
Added:
ruby27-rake/
ruby27-rake/repos/
ruby27-rake/trunk/
ruby27-rake/trunk/PKGBUILD
----------+
PKGBUILD | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
Added: ruby27-rake/trunk/PKGBUILD
===================================================================
--- ruby27-rake/trunk/PKGBUILD (rev 0)
+++ ruby27-rake/trunk/PKGBUILD 2021-05-15 21:34:04 UTC (rev 934802)
@@ -0,0 +1,24 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_gemname=rake
+pkgname=ruby27-$_gemname
+pkgver=13.0.3
+pkgrel=1
+pkgdesc='Make-like build tool implemented in Ruby'
+provides=(rake)
+arch=(any)
+url='https://ruby.github.io/rake/'
+license=(MIT)
+depends=(ruby2.7)
+options=(!emptydirs)
+source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
+noextract=($_gemname-$pkgver.gem)
+sha512sums=('cecfc63e8cf52f016d001d7ea886be434c4713c8d0af1d5c99b685c0524577239e7199376aed0b2f167e4f67bca1e2572c422b35aecb3aa6af4d9e8d6e2d347d')
+
+package() {
+ local _gemdir="$(ruby-2.7 -e'puts Gem.default_dir')"
+ gem-2.7 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"
+ install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/MIT-LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
More information about the arch-commits
mailing list