desktop/opencascade/PKGBUILD

61 lines
1.9 KiB
Bash
Raw Normal View History

2011-06-25 21:49:54 +08:00
pkgname=opencascade
2018-09-26 22:56:46 +08:00
pkgver=7.3.0
_pkgver=V${pkgver//./_}
2014-06-17 02:38:11 +08:00
pkgrel=1
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
2013-12-21 20:54:19 +08:00
arch=('x86_64')
2011-06-25 21:49:54 +08:00
url="http://www.opencascade.org"
2018-09-26 22:56:46 +08:00
license=('LGPL')
depends=('tk' 'vtk' 'gl2ps' 'intel-tbb' 'freeimage' 'ffmpeg')
makedepends=('cmake' 'qt5-base')
2011-06-25 21:49:54 +08:00
options=(!libtool)
2018-09-26 22:56:46 +08:00
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"
}
2011-06-25 21:49:54 +08:00
build() {
2018-09-26 22:56:46 +08:00
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
2011-06-25 21:49:54 +08:00
make
}
package() {
2018-09-26 22:56:46 +08:00
cd "occt-${_pkgver}/build"
make DESTDIR="$pkgdir" install
2011-06-25 21:49:54 +08:00
2018-09-26 22:56:46 +08:00
cd ..
install -Dm755 "$srcdir/opencascade.sh" "$pkgdir/etc/profile.d/opencascade.sh"
2013-12-21 20:54:19 +08:00
install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
2018-09-26 22:56:46 +08:00
mv "$pkgdir/usr/share/doc/opencascade/"* "$pkgdir/usr/share/licenses/$pkgname"
rm -r "$pkgdir/usr/share/doc"
rm "$pkgdir/usr/bin/"*.sh
2011-06-25 21:49:54 +08:00
}
2014-04-21 07:11:28 +08:00