db-move: moved webkitgtk-6.0 from [testing] to [extra] (x86_64)
[arch-packages.git] / opengl-man-pages / trunk / PKGBUILD
blobfe5fc65f7eb04b2f80e5b14e02947039b5a15854
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
3 pkgname=opengl-man-pages
4 pkgver=20190725
5 _commit=8acb9c72a30d36a6f7e89b9b2de0635c50773cdb
6 pkgrel=3
7 pkgdesc="OpenGL Man Pages - OpenGL 4.x"
8 arch=('any')
9 url="https://github.com/KhronosGroup/OpenGL-Refpages"
10 license=('custom')
11 makedepends=('docbook5-xml' 'docbook-xsl' 'libxslt' 'docbook-mathml' 'w3c-mathml2' 'python' 'git')
12 source=(${pkgname}::git+https://github.com/KhronosGroup/OpenGL-Refpages#commit=$_commit
13         'LICENSE')
14 sha256sums=('SKIP'
15             'a7b2f6669d7ead91dcaf5a03620cdf9d37c54d83fd1899b4ef84683c7e6d4024')
17 build() {
18   for manpages in gl4; do
19     cd "${srcdir}/${pkgname}/${manpages}"
20       for file in *.xml; do
21         xsltproc --xinclude --noout --nonet /usr/share/xml/docbook/xsl-stylesheets-*/manpages/docbook.xsl ${file}
22       done
23   done
26 package() {
27   install -d "${pkgdir}/usr/share/man/man3"
28   for manpages in gl4; do
29     cd "${srcdir}/${pkgname}/${manpages}"
30     install -m644 *.3G "${pkgdir}/usr/share/man/man3/"
31   done
32   # license
33   install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"