mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
61 lines
1.9 KiB
Bash
61 lines
1.9 KiB
Bash
pkgname=opencascade
|
|
pkgver=7.3.0
|
|
_pkgver=V${pkgver//./_}
|
|
pkgrel=1
|
|
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
|
|
arch=('x86_64')
|
|
url="http://www.opencascade.org"
|
|
license=('LGPL')
|
|
depends=('tk' 'vtk' 'gl2ps' 'intel-tbb' 'freeimage' 'ffmpeg')
|
|
makedepends=('cmake' 'qt5-base')
|
|
options=(!libtool)
|
|
source=("opencascade-${pkgver}.tgz::http://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/${_pkgver};sf=tgz"
|
|
'opencascade.sh' 'fix-install-dir-references.patch'
|
|
'vtk7.patch' 'ffmpeg4.patch' 'cmake-fix-variable.patch')
|
|
sha256sums=('7298c5eadc6dd0aeb6265ff2958e8e742d6e3aa65227acce8094f96f1bf6d2ac'
|
|
'2064536a85d46fee368a8f1a712b2c6c77ca79c5bffcc68cba79d70d36efa2f4'
|
|
'afb584aa453993ae8d9e2b983594558531ede735a5892754b812be30650c9fb5'
|
|
'bd230962173a80a971c8da9d3dc07238f249544bb67ee834be7d6466391d0315'
|
|
'461c44a1b635c09f23283c0b8f583a0d38079a1e20338c009776a621d0ed6efe'
|
|
'c7427082400b2d1ac58c59549d4dd1ee5b27d06847b7907842e9e2f2b68980fa')
|
|
|
|
prepare() {
|
|
cd "occt-${_pkgver}"
|
|
patch -Np1 -i "$srcdir/fix-install-dir-references.patch"
|
|
patch -Np1 -i "$srcdir/vtk7.patch"
|
|
patch -Np1 -i "$srcdir/ffmpeg4.patch"
|
|
patch -Np1 -i "$srcdir/cmake-fix-variable.patch"
|
|
}
|
|
|
|
build() {
|
|
cd "occt-${_pkgver}"
|
|
mkdir -p build && cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DUSE_GL2PS=ON \
|
|
-DUSE_FREEIMAGE=ON \
|
|
-DUSE_FFMPEG=ON \
|
|
-DUSE_VTK=ON \
|
|
-DUSE_TBB=ON
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "occt-${_pkgver}/build"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
cd ..
|
|
|
|
install -Dm755 "$srcdir/opencascade.sh" "$pkgdir/etc/profile.d/opencascade.sh"
|
|
install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
|
|
mv "$pkgdir/usr/share/doc/opencascade/"* "$pkgdir/usr/share/licenses/$pkgname"
|
|
rm -r "$pkgdir/usr/share/doc"
|
|
|
|
rm "$pkgdir/usr/bin/"*.sh
|
|
}
|
|
|