void-packages/srcpkgs/assimp/template

52 lines
1.5 KiB
Bash
Raw Normal View History

2017-03-22 23:46:51 +01:00
# Template file for 'assimp'
pkgname=assimp
2017-12-12 16:56:38 +01:00
version=4.1.0
revision=1
2017-03-22 23:46:51 +01:00
build_style=cmake
2017-08-05 09:15:26 +02:00
configure_args="-DASSIMP_BUILD_SAMPLES=OFF"
hostmakedepends="cmake pkg-config qt5-qmake qt5-host-tools qt5-devel"
makedepends="boost-devel libgomp-devel devil-devel qt5-devel minizip-devel zziplib-devel"
2017-03-22 23:46:51 +01:00
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"
2017-12-12 16:56:38 +01:00
checksum=3520b1e9793b93a2ca3b797199e16f40d61762617e072f2d525fad70f9678a71
2017-03-22 23:46:51 +01:00
depends="libassimp>=${version}_${revision}"
post_install() {
2017-08-05 09:15:26 +02:00
# Install assimp_qt_viewer
vbin build/tools/assimp_qt_viewer/assimp_qt_viewer
vlicense LICENSE
2017-03-22 23:46:51 +01:00
# Create command documentation
2017-08-05 09:15:26 +02:00
cd doc
2017-03-22 23:46:51 +01:00
vmkdir usr/share/doc/${pkgname}
vcopy AssimpCmdDoc_Html/* usr/share/doc/${pkgname}
2017-08-05 09:15:26 +02:00
2017-03-22 23:46:51 +01:00
# Create library documentation
vmkdir usr/share/doc/${pkgname}/lib
vcopy AssimpDoc_Html/* usr/share/doc/${pkgname}/lib
}
libassimp_package() {
short_desc+=" - libraries"
pkg_install() {
vmove usr/lib/*.so.*
vlicense LICENSE
}
}
libassimp-devel_package() {
short_desc+=" - development files"
depends="libassimp>=${version}_${revision} ${makedepends}"
2017-03-22 23:46:51 +01:00
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/
}
}