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

Antonio Rojas arojas at archlinux.org
Sat Jan 14 17:46:22 UTC 2017


    Date: Saturday, January 14, 2017 @ 17:46:21
  Author: arojas
Revision: 207365

Remove duplicate files

Modified:
  sagemath-doc/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-14 17:43:43 UTC (rev 207364)
+++ PKGBUILD	2017-01-14 17:46:21 UTC (rev 207365)
@@ -4,7 +4,7 @@
 pkgbase=sagemath-doc
 pkgname=(sagemath-doc sagemath-src)
 pkgver=7.5
-pkgrel=2
+pkgrel=3
 arch=(any)
 url="http://www.sagemath.org"
 license=(GPL)
@@ -77,6 +77,15 @@
   cp -r en/introspect "$pkgdir"/usr/share/doc/sage/en
   cp -r common "$pkgdir"/usr/share/doc/sage
   cp -r html "$pkgdir"/usr/share/doc/sage
+
+# Replace duplicated files by symlinks (Gentoo)
+  cd "$pkgdir"/usr/share/doc/sage
+  mv html/en/_static{,.tmp}
+  for _dir in `find -name _static` ; do
+        rm -r $_dir
+        ln -s /usr/share/doc/sage/html/en/_static $_dir
+  done
+  mv html/en/_static{.tmp,}
 }
 
 package_sagemath-src() {



More information about the arch-commits mailing list