[arch-commits] Commit in ruby-red-colors/repos (community-any community-any/PKGBUILD)

Anatol Pomozov anatolik at archlinux.org
Tue May 11 00:24:33 UTC 2021


    Date: Tuesday, May 11, 2021 @ 00:24:32
  Author: anatolik
Revision: 929773

archrelease: copy trunk to community-any

Added:
  ruby-red-colors/repos/community-any/
  ruby-red-colors/repos/community-any/PKGBUILD
    (from rev 929772, ruby-red-colors/trunk/PKGBUILD)

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

Copied: ruby-red-colors/repos/community-any/PKGBUILD (from rev 929772, ruby-red-colors/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-05-11 00:24:32 UTC (rev 929773)
@@ -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