2016-07-10 06:39:01 +08:00
|
|
|
# Arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/vulkan-docs
|
|
|
|
|
|
|
|
pkgbase=vulkan-docs
|
2018-12-02 23:48:41 +08:00
|
|
|
pkgname=(vulkan-html-docs)
|
|
|
|
pkgver=1.1.94
|
2016-07-10 06:39:01 +08:00
|
|
|
_pkgname=Vulkan-Docs
|
2018-12-02 23:48:41 +08:00
|
|
|
_pkgver=1.1.94
|
2016-07-10 06:39:01 +08:00
|
|
|
pkgrel=1
|
|
|
|
arch=(any)
|
|
|
|
url="https://www.khronos.org/vulkan/"
|
|
|
|
license=('custom')
|
2018-12-02 23:48:41 +08:00
|
|
|
makedepends=(asciidoc asciidoctor)
|
2016-07-10 06:39:01 +08:00
|
|
|
groups=(vulkan-devel)
|
|
|
|
source=("https://github.com/KhronosGroup/${_pkgname}/archive/v${_pkgver}.tar.gz")
|
2018-12-02 23:48:41 +08:00
|
|
|
md5sums=('b4a6dc00e41898dfe0a87e34838fcfb4')
|
2016-07-10 06:39:01 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_pkgname}-${_pkgver/+/-}"
|
|
|
|
|
2018-12-02 23:48:41 +08:00
|
|
|
./makeAllExts html
|
2016-07-10 06:39:01 +08:00
|
|
|
}
|
|
|
|
|
2018-12-02 23:48:41 +08:00
|
|
|
package_vulkan-html-docs() {
|
|
|
|
pkgdesc="Vulkan html documentation"
|
|
|
|
replaces=(vulkan-man-pages)
|
|
|
|
cd "${_pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
install -dm755 "${pkgdir}/usr/share/doc/vulkan"
|
|
|
|
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
|
2016-07-10 06:39:01 +08:00
|
|
|
|
2018-12-02 23:48:41 +08:00
|
|
|
mv -v out/*.html "${pkgdir}/usr/share/doc/vulkan/"
|
|
|
|
mv -v out/html/* "${pkgdir}/usr/share/doc/vulkan/"
|
2016-07-10 06:39:01 +08:00
|
|
|
|
2018-12-02 23:48:41 +08:00
|
|
|
install -m644 copyright-ccby.txt ${pkgdir}/usr/share/licenses/${pkgname}/copyright-ccby.txt
|
|
|
|
install -m644 copyright-spec.txt ${pkgdir}/usr/share/licenses/${pkgname}/copyright-spec.txt
|
2016-07-10 06:39:01 +08:00
|
|
|
}
|