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
# 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 pkgname=opengl-man-pages
_svndate=20110616 pkgver=20190305
pkgver=0.${_svndate} _commit=3e3580afb5d0634e71582c0d691f6cc756d31a5d
pkgrel=1 pkgrel=1
pkgdesc="OpenGL Man Pages" pkgdesc="OpenGL Man Pages"
arch=('any') arch=('any')
url="" url=""
license=('custom') license=('custom')
makedepends=('libxslt' 'docbook-xsl' 'w3c-mathml2' 'docbook-mathml') # OpenGL 4.x (current) API and GLSL pages - libxslt' 'docbook-xsl'
options=('!makeflags') # OpenGL 3.x and older 'w3c-mathml2' 'docbook-mathml'
source=(${pkgname}/${pkgname}_${_svndate}.tar.xz LICENSE) makedepends=('libxslt' 'docbook-xsl' 'w3c-mathml2' 'docbook-mathml' 'git')
md5sums=('70238b948a25a86a003268ddd6963516' 'cb856abe5968300057e650096ba25b2f') source=(${pkgname}::git+$_commit
# 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 pkgver() {
mksource() { date +%Y%m%d
mkdir ${pkgname}-source
pushd ${pkgname}-source
svn co --username anonymous --password anonymous man
find man -depth -type d -name .svn -exec rm -rf {} \;
tar -cvJf ../${pkgname}_${_svndate}.tar.xz man/*
} }
build() { build() {
cd "${srcdir}/man" export WD=`pwd`
export ROOT="${srcdir}/man" xmlcatalog --create --noout \
make --add public "-//W3C//DTD MathML 2.0//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
for file in *.xml; do --add public "-//W3C//DTD MathML//EN" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
xsltproc --noout --nonet /usr/share/xml/docbook/xsl-stylesheets*/manpages/docbook.xsl ${file} --add system "" "file:///usr/share/xml/w3c/mathml2/mathml2.dtd" \
export XML_CATALOG_FILES="$WD/ /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() { package() {
cd "${srcdir}/man"
install -d "${pkgdir}/usr/share/man/man3" 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/"
# license
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/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