1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
4 pkgname=(vulkan-html-docs)
10 url="https://www.khronos.org/vulkan/"
12 makedepends=(python3 python-pyparsing dblatex source-highlight cmake ghostscript nodejs npm git)
13 makedepends+=(rubygems graphicsmagick pango gdk-pixbuf2 jbigkit)
15 source=("https://github.com/KhronosGroup/${_pkgname}/archive/v${pkgver}.tar.gz")
16 sha256sums=('b8162d9425a1ae0ad263425386e5a499b1067f5aa2e429b49c3af2c940a68533')
19 export PATH="${PATH}:/build/.local/share/gem/ruby/3.0.0/bin"
21 gem install -N asciidoctor:1.5.8 asciidoctor-diagram asciidoctor-mathematical \
22 asciidoctor-pdf coderay json-schema i18n prawn-gmagick \
23 pygments.rb rouge text-hyphen
25 npm install escape-string-regexp@2.0.0 he lunr@2.3.6
29 export PATH="${PATH}:/build/.local/share/gem/ruby/3.0.0/bin"
30 export NODE_PATH="${srcdir}/node_modules"
32 cd "${srcdir}/${_pkgname}-${pkgver}"
34 ./makeAllExts html chunked manhtmlpages styleguide registry
37 package_vulkan-html-docs() {
38 pkgdesc="Vulkan html documentation"
39 cd "${_pkgname}-${pkgver}"
41 install -dm755 "${pkgdir}/usr/share/doc/vulkan"
42 install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
44 mv -v gen/out/man "${pkgdir}/usr/share/doc/vulkan/"
45 mv -v gen/out/html/* "${pkgdir}/usr/share/doc/vulkan/"
46 mv -v gen/out/registry.html "${pkgdir}/usr/share/doc/vulkan/"
47 mv -v gen/out/styleguide.html "${pkgdir}/usr/share/doc/vulkan/"
49 install -m644 LICENSE.adoc ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE