[arch-commits] Commit in opengl-man-pages/trunk (PKGBUILD)

Andreas Radke andyrtr at archlinux.org
Thu Jul 25 19:47:58 UTC 2019


    Date: Thursday, July 25, 2019 @ 19:47:57
  Author: andyrtr
Revision: 358585

upgpkg: opengl-man-pages 20190725-1

only ship OpenGL 4.x man pages; fix broken pages FS#57655

Modified:
  opengl-man-pages/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++----------------------
 1 file changed, 8 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-25 15:59:27 UTC (rev 358584)
+++ PKGBUILD	2019-07-25 19:47:57 UTC (rev 358585)
@@ -1,24 +1,18 @@
 # Maintainer: AndyRTR <andyrtr at archlinux.org>
 
 pkgname=opengl-man-pages
-pkgver=20190711
+pkgver=20190725
 _commit=8acb9c72a30d36a6f7e89b9b2de0635c50773cdb
 pkgrel=1
-pkgdesc="OpenGL Man Pages"
+pkgdesc="OpenGL Man Pages - OpenGL 4.x"
 arch=('any')
 url="https://github.com/KhronosGroup/OpenGL-Refpages"
 license=('custom')
-# OpenGL 4.x (current) API and GLSL pages - libxslt' 'docbook-xsl'
-# OpenGL 3.x and older 'w3c-mathml2' 'docbook-mathml'
-makedepends=('libxslt' 'docbook-xsl' 'w3c-mathml2' 'docbook-mathml' 'git')
+makedepends=('docbook5-xml' 'docbook-xsl' 'libxslt' 'docbook-mathml' 'w3c-mathml2' 'python' 'git')
 source=(${pkgname}::git+https://github.com/KhronosGroup/OpenGL-Refpages#commit=$_commit
         'LICENSE')
 sha256sums=('SKIP'
             'a7b2f6669d7ead91dcaf5a03620cdf9d37c54d83fd1899b4ef84683c7e6d4024')
-# gl2.1 = OpenGL 2.1 (including fixed functionality)
-# es3   = OpenGL ES 3.x (will always be the latest ES, currently 3.2)
-# gl4   = OpenGL 4.x (current) API and GLSL pages
-_mandirs=(gl4 es3 gl2.1)
 
 pkgver() {
   date +%Y%m%d
@@ -25,25 +19,17 @@
 }
 
 build() {
-  export WD=`pwd`
-  xmlcatalog --create --noout \
-    --add public "-//W3C//DTD MathML 2.0//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
-    --add public "-//W3C//DTD MathML//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
-    --add system "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
-    mathml2.cat
-  export XML_CATALOG_FILES="$WD/mathml2.cat /etc/xml/catalog"
- 
-  for manpages in ${_mandirs[@]}; do
+  for manpages in gl4; do
     cd "${srcdir}/${pkgname}/${manpages}"
-    for file in gl*.xml; do
-      xsltproc --noout --nonet /usr/share/xml/docbook/xsl-stylesheets-*/manpages/docbook.xsl ${file}
-    done
+      for file in *.xml; do
+        xsltproc --xinclude --noout --nonet /usr/share/xml/docbook/xsl-stylesheets-*/manpages/docbook.xsl ${file}
+      done
   done
 }
 
 package() {
   install -d "${pkgdir}/usr/share/man/man3"
-  for manpages in ${_mandirs[@]}; do
+  for manpages in gl4; do
     cd "${srcdir}/${pkgname}/${manpages}"
     install -m644 *.3G "${pkgdir}/usr/share/man/man3/"
   done


More information about the arch-commits mailing list