[arch-commits] Commit in ruby-gio2/trunk (PKGBUILD)
Andreas Schleifer
segaja at gemini.archlinux.org
Sun Jan 2 21:48:40 UTC 2022
Date: Sunday, January 2, 2022 @ 21:48:39
Author: segaja
Revision: 1092119
upgpkg: ruby-gio2 3.4.5-2; make package reproducible
Modified:
ruby-gio2/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-02 21:02:29 UTC (rev 1092118)
+++ PKGBUILD 2022-01-02 21:48:39 UTC (rev 1092119)
@@ -1,9 +1,10 @@
# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Andreas 'Segaja' Schleifer <segaja at archlinux dot org>
_gemname=gio2
pkgname=ruby-$_gemname
pkgver=3.4.5
-pkgrel=1
+pkgrel=2
pkgdesc='Ruby/GIO2 is a Ruby binding of gio-2.x.'
arch=(x86_64)
url='http://ruby-gnome2.sourceforge.jp/'
@@ -17,6 +18,11 @@
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}/gems/${_gemname}-${pkgver}/ext/gio2/*.o \
+ "${pkgdir}/${_gemdir}/extensions/${_platform}/${_extension_api_version}/${_gemname}-${pkgver}/gem_make.out" \
+ "${pkgdir}/${_gemdir}/gems/${_gemname}-${pkgver}/ext/gio2/Makefile"
}
More information about the arch-commits
mailing list