summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylon Edwards2018-05-01 07:27:22 -0700
committerDylon Edwards2018-05-01 07:28:44 -0700
commitdaaa4215dee2de3ad567373bf781be88790e7817 (patch)
tree68efa87e6b659a580dcb7413b72a3bd07e9bb568
downloadaur-daaa4215dee2de3ad567373bf781be88790e7817.tar.gz
Builds open3d from HEAD
-rw-r--r--.SRCINFO74
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD153
-rw-r--r--open3d-git.changelog2
4 files changed, 237 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8b826e247a3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,74 @@
+pkgbase = open3d-git
+ pkgdesc = A Modern Library for 3D Data Processing
+ pkgver = r1256.352d2f4
+ pkgrel = 1
+ url = http://www.open3d.org
+ changelog = open3d-git.changelog
+ arch = x86_64
+ license = MIT
+ checkdepends = gtest
+ makedepends = cmake
+ makedepends = findutils
+ makedepends = gawk
+ makedepends = git
+ makedepends = make
+ makedepends = pacman
+ makedepends = sed
+ depends = eigen
+ depends = glew
+ depends = glfw-x11
+ depends = jsoncpp
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = mesa
+ depends = xorg-server-devel
+ optdepends = openmp
+ optdepends = python
+ source = open3d-git::git+https://github.com/IntelVCL/Open3D.git
+ md5sums = SKIP
+
+pkgname = open3d-git
+ depends = eigen
+ depends = glew
+ depends = glfw-x11
+ depends = jsoncpp
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = mesa
+ depends = xorg-server-devel
+ optdepends = openmp
+ provides = open3d
+ conflicts = open3d
+
+pkgname = python-open3d-git
+ depends = eigen
+ depends = glew
+ depends = glfw-x11
+ depends = jsoncpp
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = mesa
+ depends = open3d-git
+ depends = python
+ depends = xorg-server-devel
+ optdepends = openmp
+ conflicts = python-open3d
+ conflicts = python-py3d
+ conflicts = python-py3d-git
+
+pkgname = python-py3d-git
+ depends = eigen
+ depends = glew
+ depends = glfw-x11
+ depends = jsoncpp
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = mesa
+ depends = open3d-git
+ depends = python
+ depends = xorg-server-devel
+ optdepends = openmp
+ conflicts = python-py3d
+ conflicts = python-open3d
+ conflicts = python-open3d-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b568e813bcb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+# Blacklist everything by default to avoid accidentally committing something
+*
+
+# Whitelist the following files and directories
+!/*.changelog
+!/.SRCINFO
+!/.gitignore
+!/PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..855f6188117
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,153 @@
+# -*- mode: shell-script -*-
+# Maintainer: Dylon Edwards <deltaecho at archlinux dot us>
+
+pkgbase=open3d-git
+pkgname=( {,python-}open3d-git python-py3d-git )
+pkgver=r1256.352d2f4
+pkgrel=1
+pkgdesc="A Modern Library for 3D Data Processing"
+arch=('x86_64')
+url="http://www.open3d.org"
+license=('MIT')
+depends=(
+ eigen
+ glew
+ glfw-x11
+ jsoncpp
+ libjpeg-turbo
+ libpng
+ mesa
+ xorg-server-devel
+)
+optdepends=(
+ openmp
+ python
+)
+makedepends=(
+ cmake
+ findutils
+ gawk
+ git
+ make
+ pacman
+ sed
+)
+checkdepends=(
+ gtest
+)
+changelog="${pkgbase}.changelog"
+source=("${pkgbase}::git+https://github.com/IntelVCL/Open3D.git")
+md5sums=(SKIP)
+
+function pkgver() {
+ cd "${pkgbase}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+function prepare() {
+ cd "${pkgbase}"
+ mkdir -p build
+}
+
+function build() {
+ cd "${pkgbase}/build"
+ cmake ../src \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON \
+ -DOpen3D_BUILD_UNIT_TESTS=ON \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+function check() {
+ cd "${pkgbase}/build"
+ bin/unitTests
+}
+
+function package_open3d-git() {
+ depends=(
+ eigen
+ glew
+ glfw-x11
+ jsoncpp
+ libjpeg-turbo
+ libpng
+ mesa
+ xorg-server-devel
+ )
+ optdepends=(
+ openmp
+ )
+ provides=(
+ open3d
+ )
+ conflicts=(
+ open3d
+ )
+ cd "${pkgbase}/build"
+ install -m 644 -D -t "${pkgdir}/usr/lib" lib/lib*.so
+ find ../src/{Core,Experimental,IO,Python,Tools,Visualization} -name '*.h' \
+ | sed -e 's|\.\./src/||' \
+ | xargs -I{} -n1 \
+ install -m 644 -D -T ../src/{} "${pkgdir}"/usr/include/Open3D/{}
+ find bin -type f \( -not -name unitTests -not -path 'bin/Test/*' \) \
+ | xargs -I{} install -m 755 -D -t "${pkgdir}"/usr/bin {}
+}
+
+function package_python-open3d-git() {
+ depends=(
+ eigen
+ glew
+ glfw-x11
+ jsoncpp
+ libjpeg-turbo
+ libpng
+ mesa
+ open3d-git
+ python
+ xorg-server-devel
+ )
+ optdepends=(
+ openmp
+ )
+ privides=(
+ python-open3d
+ python-py3d{,-git}
+ )
+ conflicts=(
+ python-open3d
+ python-py3d{,-git}
+ )
+ cd "${pkgbase}/build"
+ local SITE_PACKAGES="$(pacman -Qlq python | grep '/site-packages/$')"
+ install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/py3d.*.so
+}
+
+function package_python-py3d-git() {
+ depends=(
+ eigen
+ glew
+ glfw-x11
+ jsoncpp
+ libjpeg-turbo
+ libpng
+ mesa
+ open3d-git
+ python
+ xorg-server-devel
+ )
+ optdepends=(
+ openmp
+ )
+ privides=(
+ python-py3d
+ python-open3d{,-git}
+ )
+ conflicts=(
+ python-py3d
+ python-open3d{,-git}
+ )
+ cd "${pkgbase}/build"
+ local SITE_PACKAGES="$(pacman -Qlq python | grep '/site-packages/$')"
+ install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/py3d.*.so
+}
diff --git a/open3d-git.changelog b/open3d-git.changelog
new file mode 100644
index 00000000000..1853a56656e
--- /dev/null
+++ b/open3d-git.changelog
@@ -0,0 +1,2 @@
+2018-05-01 Dylon Edwards <deltaecho at archlinux dot us>
+ * open3d-git r1256.352d2f4