[arch-commits] Commit in r/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Thu May 26 21:17:29 UTC 2022


    Date: Thursday, May 26, 2022 @ 21:17:28
  Author: arojas
Revision: 1210683

Add provides for bundled packages (FS#74850)

Modified:
  r/trunk/PKGBUILD

----------+
 PKGBUILD |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-26 20:41:33 UTC (rev 1210682)
+++ PKGBUILD	2022-05-26 21:17:28 UTC (rev 1210683)
@@ -5,7 +5,7 @@
 
 pkgname=r
 pkgver=4.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Language and environment for statistical computing and graphics'
 arch=(x86_64)
 license=(GPL)
@@ -86,4 +86,12 @@
 
 # Install ld.so.conf.d file to ensure other applications access the shared lib
   install -Dm644 "$srcdir"/R.conf -t "$pkgdir"/etc/ld.so.conf.d
+
+# Add provides for bundled packages
+  for _f in "$pkgdir"/usr/lib/R/library/*/DESCRIPTION; do
+    _pkg=$(grep Package: $_f | cut -d' ' -f2 | tr '[:upper:]' '[:lower:]')
+    _ver=$(grep Version $_f | cut -d' ' -f2)
+    _prov="r-$_pkg=${_ver/-/.}"
+    provides+=($_prov)
+  done
 }



More information about the arch-commits mailing list