upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / vulkan-docs / trunk / PKGBUILD
bloba506e90143fcc2ba5a747f4f6946149030338f7b
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgbase=vulkan-docs
4 pkgname=(vulkan-html-docs)
5 pkgver=1.3.246
6 pkgrel=1
7 epoch=1
8 _pkgname=Vulkan-Docs
9 arch=(any)
10 url="https://www.khronos.org/vulkan/"
11 license=('custom')
12 makedepends=(python3 python-pyparsing dblatex source-highlight cmake ghostscript nodejs npm git)
13 makedepends+=(rubygems graphicsmagick pango gdk-pixbuf2 jbigkit)
14 groups=(vulkan-devel)
15 source=("https://github.com/KhronosGroup/${_pkgname}/archive/v${pkgver}.tar.gz")
16 sha256sums=('b8162d9425a1ae0ad263425386e5a499b1067f5aa2e429b49c3af2c940a68533')
18 prepare() {
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
28 build() {
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