Commit a23c11ab authored by Jeff Huang's avatar Jeff Huang 😕

[skip-ci] opengl-man-pages: update to 20190305

parent 261c154b
Pipeline #2825 skipped
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=opengl-man-pages
_svndate=20110616
pkgver=0.${_svndate}
pkgver=20190305
_commit=3e3580afb5d0634e71582c0d691f6cc756d31a5d
pkgrel=1
pkgdesc="OpenGL Man Pages"
arch=('any')
url="http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages"
url="https://github.com/KhronosGroup/OpenGL-Refpages"
license=('custom')
makedepends=('libxslt' 'docbook-xsl' 'w3c-mathml2' 'docbook-mathml')
options=('!makeflags')
source=(http://chakra-project.org/sources/${pkgname}/${pkgname}_${_svndate}.tar.xz LICENSE)
md5sums=('70238b948a25a86a003268ddd6963516' 'cb856abe5968300057e650096ba25b2f')
# 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')
source=(${pkgname}::git+https://github.com/KhronosGroup/OpenGL-Refpages#commit=$_commit
'LICENSE')
md5sums=('SKIP'
'cb856abe5968300057e650096ba25b2f')
# 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)
# source PKGBUILD && mksource
mksource() {
mkdir ${pkgname}-source
pushd ${pkgname}-source
svn co --username anonymous --password anonymous https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/docs/man/ man
find man -depth -type d -name .svn -exec rm -rf {} \;
tar -cvJf ../${pkgname}_${_svndate}.tar.xz man/*
popd
pkgver() {
date +%Y%m%d
}
build() {
cd "${srcdir}/man"
export ROOT="${srcdir}/man"
make
for file in *.xml; do
xsltproc --noout --nonet /usr/share/xml/docbook/xsl-stylesheets*/manpages/docbook.xsl ${file}
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
cd "${srcdir}/${pkgname}/${manpages}"
for file in gl*.xml; do
xsltproc --noout --nonet /usr/share/xml/docbook/xsl-stylesheets-*/manpages/docbook.xsl ${file}
done
done
}
package() {
cd "${srcdir}/man"
install -d "${pkgdir}/usr/share/man/man3"
install -m644 *.3G "${pkgdir}/usr/share/man/man3/"
for manpages in ${_mandirs[@]}; do
cd "${srcdir}/${pkgname}/${manpages}"
install -m644 *.3G "${pkgdir}/usr/share/man/man3/"
done
# license
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment