void-packages/srcpkgs/assimp/template

49 lines
1.3 KiB
Bash

# Template file for 'assimp'
pkgname=assimp
version=4.0.0
revision=1
build_style=cmake
hostmakedepends="cmake pkg-config"
makedepends="boost-devel zlib-devel"
short_desc="Import library for various well-known 3D model formats"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="3-clause-BSD"
homepage="http://assimp.sourceforge.net/"
distfiles="https://github.com/assimp/assimp/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=9025d7fdd2a1d1d23261cbbcb1155b267f2a277f7e86103e5e16f1cdea407fb9
depends="libassimp>=${version}_${revision}"
post_install() {
cd doc
# Create command documentation
vmkdir usr/share/doc/${pkgname}
vcopy AssimpCmdDoc_Html/* usr/share/doc/${pkgname}
# Create library documentation
vmkdir usr/share/doc/${pkgname}/lib
vcopy AssimpDoc_Html/* usr/share/doc/${pkgname}/lib
cd ..
vlicense LICENSE
}
libassimp_package() {
short_desc+=" - libraries"
depends="${makedepends}"
pkg_install() {
vmove usr/lib/*.so.*
vlicense LICENSE
}
}
libassimp-devel_package() {
short_desc+=" - development files"
depends="libassimp>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmkdir usr/share/doc/libassimp
mv ${DESTDIR}/usr/share/doc/${sourcepkg}/lib/* \
${PKGDESTDIR}/usr/share/doc/libassimp/
}
}