blob: acb80bb6b73210dd67a611f90f14d4f7d6cc5837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Grey Christoforo <first name at last name dot net>
pkgname=oce
pkgver=0.18.3
pkgrel=1
pkgdesc="Open CASCADE Community Edition: patches/improvements/experiments contributed by users over the official Open CASCADE library."
url="https://github.com/tpaviot/oce"
arch=('i686' 'x86_64')
license=('GPL')
makedepends=('cmake')
depends=('intel-tbb' 'gl2ps' 'freeimage' 'tk' 'glu')
source=(https://github.com/tpaviot/${pkgname}/archive/OCE-${pkgver}.tar.gz 99_oce.sh 99_oce.conf)
md5sums=('1686393c8493bbbb2f3f242330b33cba'
'606e400a97d9947459e4de2eca65f04c'
'167a9f5c94a16d7855c3ac99e34a4506')
#prepare() {
#if [ ! -e "/usr/include/xlocale.h" ]; then
# sed -i 's, #include <xlocale.h>, #include <locale.h>,g' "oce-OCE-${pkgver}/src/Standard/Standard_CLocaleSentry.hxx"
#fi
#}
build() {
cd oce-OCE-${pkgver}
mkdir -p build
cd build
flags=""
flags="$flags -DOCE_INSTALL_PREFIX=/opt/oce"
flags="$flags -DOCE_MULTITHREAD_LIBRARY:STRING=TBB"
flags="$flags -DOCE_WITH_GL2PS=OFF"
flags="$flags -DOCE_WITH_FREEIMAGE=ON"
flags="$flags -DCMAKE_BUILD_TYPE=RelWithDebInfo"
flags="$flags -DOCE_TESTING=OFF"
flags="$flags -DOCE_USE_PCH=OFF"
flags="$flags -DOCE_COPY_HEADERS_BUILD=ON"
flags="$flags -DOCE_WITH_VTK=OFF"
flags="$flags -DOCE_ENABLE_DEB_FLAG=OFF"
cmake $flags ..
make
}
package() {
cd oce-OCE-${pkgver}/build
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/oce-OCE-${pkgver}/LICENSE_LGPL_21.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_LGPL_21.txt"
install -Dm644 "${srcdir}/oce-OCE-${pkgver}/OCCT_LGPL_EXCEPTION.txt" "$pkgdir/usr/share/licenses/$pkgname/OCCT_LGPL_EXCEPTION.txt"
install -m644 -D "${srcdir}/99_oce.conf" -t "${pkgdir}/etc/ld.so.conf.d"
install -m755 -D "${srcdir}/99_oce.sh" -t "${pkgdir}/etc/profile.d"
}
# vim:set ts=2 sw=2 et:
|