summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 47e220f2fe0633872858ccc295dc75cbd3eb16b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Thibault 'Ryp' Schueller <ryp.sqrt@gmail.com>

_gitname=Vulkan-Docs
pkgname=vulkan-man-git
pkgver=v1.1.89.r2.g969db8e
pkgrel=1
pkgdesc="Vulkan API specs man pages (unofficial support)"
arch=('any')
license=('custom')
url="https://www.khronos.org/registry/vulkan/#apispecs"
makedepends=('git' 'make' 'asciidoctor>=1.5.8')
conflicts=('vulkan-man')
provides=('vulkan-man')
source=("git+https://github.com/Ryp/${_gitname}.git")
sha512sums=('SKIP')

pkgver() {
    cd "$srcdir/$_gitname"
    git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/$_gitname"
    make manpages
}

package() {
    cd "$srcdir/$_gitname"

    install -d "${pkgdir}/usr/share/man/man3"
    install -m 644 out/man/* "${pkgdir}/usr/share/man/man3"

    install -Dm 644 COPYING.md "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE"
}