summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten de Vries2015-12-29 12:56:29 +0100
committerMaarten de Vries2015-12-30 01:22:25 +0100
commit31ebdfd2389d608284df793b826c4ab905f04b5e (patch)
tree92fb8ebeeaa18b490ba354436be844feee15082c
downloadaur-31ebdfd2389d608284df793b826c4ab905f04b5e.tar.gz
Add PKGBUILD and SRCINFO.
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD70
2 files changed, 100 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c271894ce9a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+# Generated by mksrcinfo v8
+# Wed Dec 30 00:21:50 UTC 2015
+pkgbase = pcl-git
+ pkgdesc = a standalone, large scale, open project for 2D/3D image and point cloud processing
+ pkgver = r9837.e97b664
+ pkgrel = 1
+ url = http://pointclouds.org/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = cmake
+ makedepends = git
+ depends = boost
+ depends = eigen
+ depends = flann
+ depends = vtk
+ depends = qt5-base
+ depends = qt5-webkit
+ depends = qhull
+ depends = glu
+ depends = python2
+ depends = libxt
+ depends = openmpi
+ provides = pcl
+ conflicts = pcl
+ source = git+https://github.com/PointCloudLibrary/pcl
+ sha256sums = SKIP
+
+pkgname = pcl-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7101b07533c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Maarten de Vries <maarten@de-vri.es>
+
+pkgname=pcl-git
+pkgver=r9837.e97b664
+pkgrel=1
+pkgdesc="a standalone, large scale, open project for 2D/3D image and point cloud processing"
+arch=(i686 x86_64)
+url="http://pointclouds.org/"
+license=('BSD')
+depends=(
+ boost
+ eigen
+ flann
+ vtk
+ qt5-base
+ qt5-webkit
+ qhull
+ glu
+ python2
+ libxt
+ openmpi
+)
+makedepends=(cmake git)
+source=(git+https://github.com/PointCloudLibrary/pcl)
+sha256sums=(SKIP)
+conflicts=(pcl)
+provides=(pcl)
+
+pkgver() {
+ cd "$srcdir/pcl"
+ # Use the tag of the last commit
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ rm -rf "$srcdir/build"
+ mkdir "$srcdir/build"
+ cd "$srcdir/build"
+
+ cmake "${srcdir}/pcl" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_apps=ON \
+ -DBUILD_apps_cloud_composer=ON \
+ -DBUILD_apps_in_hand_scanner=ON \
+ -DBUILD_apps_modeler=ON \
+ -DBUILD_apps_point_cloud_editor=ON \
+ -DBUILD_examples=ON \
+ -DBUILD_global_tests=OFF \
+ -DBUILD_surface_on_nurbs=ON \
+ -DBUILD_CUDA=ON \
+ -DBUILD_cuda_io=ON \
+ -DBUILD_cuda_apps=ON \
+ -DBUILD_GPU=ON \
+ -DBUILD_gpu_surface=ON \
+ -DBUILD_gpu_tracking=ON \
+ -DBUILD_app_3d_rec_framework=ON \
+ -DBUILD_simulation=ON
+}
+
+build() {
+ cd "$srcdir/build"
+ make
+}
+
+package() {
+ cd "$srcdir/build"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 "$srcdir/pcl/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}