36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
|
# Template file for 'occt'
|
||
|
pkgname=occt
|
||
|
_gittag="V7_2_0p1"
|
||
|
version=7.2.0p1
|
||
|
revision=1
|
||
|
wrksrc=occt-${_gittag}
|
||
|
build_style=cmake
|
||
|
configure_args="-DUSE_FREEIMAGE=ON -DUSE_TBB=ON -DUSE_GL2PS=ON -DUSE_VTK=OFF
|
||
|
-DINSTALL_SAMPLES=ON"
|
||
|
makedepends="freetype-devel glu-devel freeimage-devel gl2ps-devel tbb-devel
|
||
|
tcl-devel tk-devel"
|
||
|
short_desc="OpenCASCADE Technology - library for CAD/CAM/CAE applications"
|
||
|
maintainer="Piraty <piraty1@inbox.ru>"
|
||
|
license="LGPL-2.1"
|
||
|
homepage="https://www.opencascade.com"
|
||
|
distfiles="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_gittag};sf=tgz>occt-${_gittag}.tar.gz"
|
||
|
checksum=530f9981e6026e6cc04c462ab039b4977a568f943d6086dc502262d100a07a79
|
||
|
conflicts="oce>=0"
|
||
|
|
||
|
post_install() {
|
||
|
vlicense OCCT_LGPL_EXCEPTION.txt
|
||
|
rm ${DESTDIR}/usr/bin/custom*.sh
|
||
|
}
|
||
|
|
||
|
occt-devel_package() {
|
||
|
short_desc+=" - development files"
|
||
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove "usr/lib/*.so"
|
||
|
vmove "usr/lib/cmake"
|
||
|
mkdir -p ${PKGDESTDIR}/usr/share/${pkgname}
|
||
|
vcopy samples usr/share/${pkgname}
|
||
|
}
|
||
|
}
|