mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
|
|
|
pkgname=opencascade
|
|
pkgver=6.7.1
|
|
pkgrel=1
|
|
pkgdesc="Open CASCADE Technology, 3D modeling & numerical simulation"
|
|
arch=('x86_64')
|
|
url="http://www.opencascade.org"
|
|
license=('custom')
|
|
depends=('tk' 'mesa' 'java-runtime' 'libxmu' 'ftgl')
|
|
makedepends=('java-environment')
|
|
options=(!libtool)
|
|
source=("http://files.opencascade.com/OCCT/OCC_${pkgver}_release/$pkgname-${pkgver}.tgz" "env.sh" "opencascade.sh" "opencascade.conf")
|
|
md5sums=('9316150af298a5608d74785c25491fd4'
|
|
'ccdd8d16055d77bf99bbd46ba9dcb848'
|
|
'd9368b8d348ced3ec4462012977552d2'
|
|
'2924ecf57c95d25888f51071fdc72ad0')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
if [ ! -d $JAVA_HOME/include ]; then
|
|
[ -e /etc/profile.d/openjdk6.sh ] && source /etc/profile.d/openjdk6.sh
|
|
[ -e /etc/profile.d/jdk.sh ] && source /etc/profile.d/jdk.sh
|
|
fi
|
|
|
|
# fix for automake 1.13
|
|
sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac
|
|
./build_configure
|
|
./configure --disable-debug --enable-production \
|
|
--with-java-include=${JAVA_HOME}/include --prefix="$pkgdir/opt/$pkgname"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make install
|
|
cp -r src/UnitsAPI/ "${pkgdir}/opt/$pkgname/src"
|
|
install -D -m644 "${srcdir}/opencascade.conf" "${pkgdir}/etc/ld.so.conf.d/opencascade.conf"
|
|
install -D -m 755 "${srcdir}/opencascade.sh" "${pkgdir}/etc/profile.d/opencascade.sh"
|
|
install -m 755 "${srcdir}/env.sh" "${pkgdir}/opt/$pkgname"
|
|
install -dm755 "$pkgdir/usr/share/licenses/$pkgname/"
|
|
install -m644 LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|
|
|