Skip to content

Instantly share code, notes, and snippets.

@samuelsadok
Created October 2, 2018 18:59
Show Gist options
  • Save samuelsadok/fac287a7396f0905536184c25f6dafec to your computer and use it in GitHub Desktop.
Save samuelsadok/fac287a7396f0905536184c25f6dafec to your computer and use it in GitHub Desktop.
diff --git a/PKGBUILD b/PKGBUILD
index e98fdeb..4412f7b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgbase=open3d
pkgname=( {,python-}open3d python-py3d )
-pkgver=0.1.1
+pkgver=0.3.0
pkgrel=1
epoch=3
pkgdesc="A Modern Library for 3D Data Processing"
@@ -32,6 +32,7 @@ makedepends=(
make
pacman
sed
+ python
)
checkdepends=(
gtest
@@ -53,17 +54,18 @@ function prepare() {
function build() {
cd "${pkgbase}/build"
- cmake ../src \
+ cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
- -DOpen3D_BUILD_UNIT_TESTS=ON \
+ -DBUILD_UNIT_TESTS=ON \
-DCMAKE_BUILD_TYPE=Release
make
}
function check() {
- cd "${pkgbase}/build"
- bin/unitTests
+ #cd "${pkgbase}/util/scripts"
+ #./runUnitTests.sh
+ echo disabled
}
function package_open3d() {
@@ -109,8 +111,8 @@ function package_python-open3d() {
optdepends=(
openmp
)
- privides=(
- python-py3d
+ provides=(
+ python-open3d
)
conflicts=(
python-open3d-git
@@ -118,9 +120,11 @@ function package_python-open3d() {
)
cd "${pkgbase}/build"
local SITE_PACKAGES="$(pacman -Qlq python | grep '/site-packages/$')"
- install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/py3d.*.so
+ install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/Python/open3d.*.so
}
+# py3d is an alternative name for the Python package
+# The official name on PyPI is "open3d"
function package_python-py3d() {
depends=(
eigen
@@ -137,8 +141,8 @@ function package_python-py3d() {
optdepends=(
openmp
)
- privides=(
- python-open3d
+ provides=(
+ python-py3d
)
conflicts=(
python-py3d-git
@@ -146,5 +150,6 @@ function package_python-py3d() {
)
cd "${pkgbase}/build"
local SITE_PACKAGES="$(pacman -Qlq python | grep '/site-packages/$')"
- install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/py3d.*.so
+ install -m 644 -D -t "${pkgdir}/${SITE_PACKAGES}" lib/Python/open3d.*.so
}
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment