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

Felix Yan felixonmars at archlinux.org
Sun Feb 16 20:40:48 UTC 2020


    Date: Sunday, February 16, 2020 @ 20:40:47
  Author: felixonmars
Revision: 572845

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 572844, ruby-ffi/trunk/PKGBUILD)

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

Copied: ruby-ffi/repos/community-testing-x86_64/PKGBUILD (from rev 572844, ruby-ffi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-02-16 20:40:47 UTC (rev 572845)
@@ -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.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=('a1f7d11d83999ba1c3568e01b1b2684f27daae4e36d64b9815ef8539c866598c12d954203bcb9eae50aa1fbe8f2cde689eb2a7df1fced3d6384719b21b2b54fe')
+
+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