[arch-commits] Commit in ruby-cairo-gobject/trunk (PKGBUILD)

Andreas Schleifer segaja at gemini.archlinux.org
Thu Dec 30 13:16:53 UTC 2021


    Date: Thursday, December 30, 2021 @ 13:16:52
  Author: segaja
Revision: 1088267

upgpkg: ruby-cairo-gobject 3.4.5-2; make package reproducible

Modified:
  ruby-cairo-gobject/trunk/PKGBUILD

----------+
 PKGBUILD |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-30 13:16:45 UTC (rev 1088266)
+++ PKGBUILD	2021-12-30 13:16:52 UTC (rev 1088267)
@@ -1,9 +1,10 @@
 # Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
 
 _gemname=cairo-gobject
 pkgname=ruby-$_gemname
 pkgver=3.4.5
-pkgrel=1
+pkgrel=2
 pkgdesc='Ruby/CairoGObject is a Ruby binding of cairo-gobject'
 arch=(x86_64)
 url='http://ruby-gnome2.sourceforge.jp/'
@@ -16,6 +17,12 @@
 
 package() {
   local _gemdir="$(ruby -e'puts Gem.default_dir')"
+  local _platform="$(gem env platform | cut -d':' -f2)"
+  local _extension_api_version="$(ruby -e'puts Gem.extension_api_version')"
   gem install --ignore-dependencies --no-user-install --no-document -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
-  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
+  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem" \
+      "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" \
+      "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/mkmf.log" \
+      "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/cairo-gobject/rb-cairo-gobject.o" \
+      "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/cairo-gobject/Makefile"
 }



More information about the arch-commits mailing list