[arch-commits] Commit in ruby-ffi/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Jun 1 15:44:58 UTC 2020


    Date: Monday, June 1, 2020 @ 15:44:58
  Author: felixonmars
Revision: 637830

archrelease: copy trunk to community-testing-x86_64

Added:
  ruby-ffi/repos/community-testing-x86_64/
  ruby-ffi/repos/community-testing-x86_64/PKGBUILD
    (from rev 637829, ruby-ffi/trunk/PKGBUILD)

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

Copied: ruby-ffi/repos/community-testing-x86_64/PKGBUILD (from rev 637829, ruby-ffi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-06-01 15:44:58 UTC (rev 637830)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Mario Finelli <mario at finel dot li>
+# Contributor: Artem Vorotnikov <artem at vorotnikov dot me>
+
+_gemname=ffi
+pkgname=ruby-$_gemname
+pkgver=1.13.0
+pkgrel=1
+pkgdesc='Ruby FFI'
+arch=('x86_64')
+url='https://github.com/ffi/ffi'
+license=('BSD')
+depends=('ruby')
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=($_gemname-$pkgver.gem)
+sha512sums=('3f710eb78fb52a7a29a177cb243104bed9a6bf06b108a6d8015f88b7debeb3fae6a8753ed22d54e826a894a3806efb9397d7e6ee625d2da73610b6fdaea37217')
+
+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/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list