Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=ifcopenshell
- pkgver=0.6.0b0
- pkgrel=1
- pkgdesc="Open source IFC library and geometry engine. Provides static libraries, python3 wrapper and blender addon."
- arch=('x86_64' 'i686')
- url="http://ifcopenshell.org/"
- license=('LGPL3')
- depends=('boost-libs>=1.58.0' 'opencascade' 'icu' 'opencollada' 'python')
- optdepends=()
- makedepends=('cmake' 'boost>=1.58.0' 'swig3')
- provides=('ifcopenshell' 'ifcblender' 'IfcConvert' 'IfcGeomServer')
- conflicts=()
- replaces=()
- backup=()
- source=("https://github.com/IfcOpenShell/IfcOpenShell/archive/v${pkgver//_/-}.tar.gz")
- _blenderver=2.79
- prepare(){
- cd "${srcdir}/IfcOpenShell-${pkgver//_/-}"
- }
- build() {
- cd "${srcdir}/IfcOpenShell-${pkgver//_/-}"
- mkdir -p build
- cd "${srcdir}/IfcOpenShell-${pkgver//_/-}/build"
- local _pythonver=$(python --version >&1)
- cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DOCC_INCLUDE_DIR=/usr/include/opencascade \
- -DOCC_LIBRARY_DIR=/usr/lib \
- -DLIBXML2_INCLUDE_DIR=/usr/include/libxml2 \
- -DLIBXML2_LIBRARIES="/usr/lib/libxml2.so.2" \
- -DSWIG_EXECUTABLE="/usr/bin/swig-3" \
- ../cmake/
- make
- }
- package() {
- cd "${srcdir}/IfcOpenShell-${pkgver//_/-}/build"
- make DESTDIR="${pkgdir}" install
- cd "${srcdir}/IfcOpenShell-${pkgver//_/-}"
- install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
- mkdir -p "${pkgdir}"/usr/share/blender/${_blenderver}/scripts/addons_contrib
- cp -rf "${srcdir}"/IfcOpenShell-${pkgver//_/-}/src/ifcblender/* "${pkgdir}"/usr/share/blender/${_blenderver}/scripts/addons_contrib
- cp -rf "${srcdir}"/IfcOpenShell-${pkgver//_/-}/src/ifcopenshell-python/* "${pkgdir}"/usr/share/blender/${_blenderver}/scripts/addons_contrib/io_import_scene_ifc
- cp -f "${srcdir}"/IfcOpenShell-${pkgver//_/-}/build/ifcwrap/*ifcopenshell_wrapper* "${pkgdir}"/usr/share/blender/${_blenderver}/scripts/addons_contrib/io_import_scene_ifc/ifcopenshell
- }
- md5sums=('b69c6607436ada76f2ab263385fa6a8c')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement