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

Evangelos Foutras foutrelis at archlinux.org
Wed Apr 8 22:07:20 UTC 2020


    Date: Wednesday, April 8, 2020 @ 22:07:19
  Author: foutrelis
Revision: 612771

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: ruby-ffi/repos/community-staging-x86_64/PKGBUILD (from rev 612770, ruby-ffi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-08 22:07:19 UTC (rev 612771)
@@ -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.12.2
+pkgrel=2
+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=('98f5d580474c39ee70a923bcd2a1d5339baeb4d71b6f3d51a2c08bdd5231b0930a7d53e89d86b6ea23bdfc1dd8981a92a5469b6167edf0128677236173e52fd2')
+
+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