desktop/opencascade/PKGBUILD
2013-12-21 13:54:19 +01:00

48 lines
1.7 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=opencascade
pkgver=6.7.0
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=('2fa5463d68cdb4350fb0638730102143'
'acf8ad1e470cd7d1c2033954c1b0f03a'
'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"
}