[arch-commits] Commit in (4 files)

Anatol Pomozov anatolik at archlinux.org
Tue May 11 00:23:59 UTC 2021


    Date: Tuesday, May 11, 2021 @ 00:23:59
  Author: anatolik
Revision: 929772

ruby-red-colors: add ruby package

Added:
  ruby-red-colors/
  ruby-red-colors/repos/
  ruby-red-colors/trunk/
  ruby-red-colors/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Added: ruby-red-colors/trunk/PKGBUILD
===================================================================
--- ruby-red-colors/trunk/PKGBUILD	                        (rev 0)
+++ ruby-red-colors/trunk/PKGBUILD	2021-05-11 00:23:59 UTC (rev 929772)
@@ -0,0 +1,22 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+_gemname=red-colors
+pkgname=ruby-$_gemname
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='Provides a wide array of features for dealing with colors'
+arch=(any)
+url='https://github.com/red-data-tools/red-colors'
+license=('MIT')
+depends=(ruby)
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=($_gemname-$pkgver.gem)
+sha512sums=('a935feec2e6ae25f009bcd913b37b0daa180c42dd7056cd42aac3af3f8b9f50bfa8304f7e3919e3cae9e7d83c5a3778fc06934042efe7de3561c24241cba708b')
+
+package() {
+  local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
+  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}



More information about the arch-commits mailing list