SHARE
TWEET

open3d 0.5.0

a guest Mar 11th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- mode: shell-script -*-
  2. # Maintainer: Dylon Edwards <deltaecho at archlinux dot us>
  3.  
  4. pkgbase=open3d
  5. pkgname=( {,python-}open3d )
  6. pkgver=0.5.0
  7. pkgrel=0
  8. epoch=3
  9. pkgdesc="A Modern Library for 3D Data Processing"
  10. arch=('x86_64')
  11. url="http://www.open3d.org"
  12. license=('MIT')
  13. depends=(
  14.     eigen
  15.     glew
  16.     glfw-x11
  17.     jsoncpp
  18.     libjpeg-turbo
  19.     libpng
  20.     mesa
  21.     xorg-server-devel
  22. )
  23. optdepends=(
  24.     openmp
  25.     python
  26.     pybind11
  27. )
  28. makedepends=(
  29.     cmake
  30.     findutils
  31.     gawk
  32.     git
  33.     make
  34.     pacman
  35.     sed
  36. )
  37. checkdepends=(
  38.     gtest
  39. )
  40. changelog="${pkgbase}.changelog"
  41. source=("${pkgbase}::git+https://github.com/IntelVCL/Open3D.git#tag=v${pkgver}"
  42.         "git+https://github.com/IntelVCL/Open3D-3rdparty.git")
  43. md5sums=('SKIP' 'SKIP')
  44.  
  45. #function pkgver() {
  46. #    cd "${pkgbase}
  47. #    # grab the latest tag
  48. #    git describe --tags --abbrev=0 | sed -e 's/^v\?//'
  49. #}
  50.  
  51. function prepare() {
  52.     cd "${pkgbase}"
  53.     mkdir -p build
  54.    
  55.     git submodule init
  56.     git config submodule.3rdparty.url ${srcdir}/Open3D-3rdparty
  57.     git submodule update
  58. }
  59.  
  60. function build() {
  61.     cd "${pkgbase}/build"
  62.     cmake .. \
  63.           -DCMAKE_INSTALL_PREFIX=/usr \
  64.           -DBUILD_SHARED_LIBS=ON \
  65.           -DOpen3D_BUILD_UNIT_TESTS=ON \
  66.           -DCMAKE_BUILD_TYPE=Release
  67.     make
  68. }
  69.  
  70. #function check() {
  71. #    cd "${pkgbase}/build"
  72. #    bin/unitTests
  73. #}
  74.  
  75. function package_open3d() {
  76.     depends=(
  77.         eigen
  78.         glew
  79.         glfw-x11
  80.         jsoncpp
  81.         libjpeg-turbo
  82.         libpng
  83.         mesa
  84.         xorg-server-devel
  85.     )
  86.     optdepends=(
  87.         openmp
  88.     )
  89.     conflicts=(
  90.         open3d-git
  91.     )
  92.     cd "${pkgbase}/build"
  93.     install -m 644 -D -t "${pkgdir}/usr/lib" lib/lib*.so
  94.     find ../src/{Core,Experimental,IO,Python,Tools,Visualization} -name '*.h' \
  95.         | sed -e 's|\.\./src/||' \
  96.         | xargs -I{} -n1 \
  97.                 install -m 644 -D -T ../src/{} "${pkgdir}"/usr/include/Open3D/{}
  98.     find bin -type f \( -not -name unitTests -not -path 'bin/Test/*' \) \
  99.         | xargs -I{} install -m 755 -D -t "${pkgdir}"/usr/bin {}
  100. }
  101.  
  102. function package_python-open3d() {
  103.     depends=(
  104.         eigen
  105.         glew
  106.         glfw-x11
  107.         jsoncpp
  108.         libjpeg-turbo
  109.         libpng
  110.         mesa
  111.         open3d
  112.         python
  113.         xorg-server-devel
  114.     )
  115.     optdepends=(
  116.         openmp
  117.     )
  118.     privides=(
  119.         python-py3d
  120.     )
  121.     conflicts=(
  122.         python-open3d-git
  123.         python-py3d{,-git}
  124.     )
  125.     cd "${pkgbase}/build"
  126.     local SITE_PACKAGES="$(pacman -Qlq python | grep '/site-packages/$')"
  127.     install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/Python/open3d.*.so
  128. }
  129.  
  130. #function package_python-py3d() {
  131. #    depends=(
  132. #        eigen
  133. #        glew
  134. #        glfw-x11
  135. #        jsoncpp
  136. #        libjpeg-turbo
  137. #        libpng
  138. #        mesa
  139. #        open3d
  140. #        pythonsrc
  141. #        xorg-server-devel
  142. #    )
  143. #    optdepends=(
  144. #        openmp
  145. #    )
  146. #    privides=(
  147. #        python-open3d
  148. #    )
  149. #    conflicts=(
  150. #        python-py3d-git
  151. #        python-open3d{,-git}
  152. #    )
  153. #    cd "${pkgbase}/build"
  154. #    local SITE_PACKAGES="$(pacman -Qlq python | grep '/site-packages/$')"
  155. #    install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/py3d.*.so
  156. #}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top