summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo2015-08-20 21:55:03 +0200
committerDanilo2015-08-20 21:55:03 +0200
commit87e3243b37244475b8bf653e8c0f6e8e9d434f5c (patch)
treedb0b4b065bd061b7a93b5488eb1d590538bea550
downloadaur-87e3243b37244475b8bf653e8c0f6e8e9d434f5c.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD72
3 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1aeddbad05a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = cloudcompare-git
+ pkgdesc = A 3D point cloud (and triangular mesh) processing software
+ pkgver = 2.5.0.r830.g3cd1c04
+ pkgrel = 1
+ url = http://www.danielgm.net/cc/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = git
+ makedepends = cmake
+ makedepends = pcl
+ depends = qt4
+ depends = glu
+ depends = mesa
+ optdepends = pcl
+ source = git+https://github.com/cloudcompare/trunk
+ md5sums = SKIP
+
+pkgname = cloudcompare-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..b5624b74f80
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e5e1104f4e8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,72 @@
+# Original Author: Johannes Sauer <joh.sauer(at)gmail(dot)com>
+# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
+
+pkgname=cloudcompare-git
+pkgver=2.5.0.r830.g3cd1c04
+pkgrel=1
+pkgdesc="A 3D point cloud (and triangular mesh) processing software"
+arch=('i686' 'x86_64')
+url="http://www.danielgm.net/cc/"
+license=('GPL2')
+depends=('qt4' 'glu' 'mesa')
+makedepends=('git' 'cmake' 'pcl')
+optdepends=('pcl')
+source=("git+https://github.com/cloudcompare/trunk")
+md5sums=('SKIP')
+
+
+pkgver() {
+ cd "$srcdir/trunk"
+ git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/trunk"
+
+ [[ -d build ]] && rm -r build
+ mkdir -p build && cd build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/opt \
+ -DBUILD_QPCL_PLUGIN_DOCUMENTATION=ON \
+ -DINSTALL_QPCL_PLUGIN=ON \
+ -DINSTALL_QSRA_PLUGIN=OFF \
+ -DINSTALL_QPOISSON_RECON_PLUGIN=OFF \
+ -DINSTALL_QHPR_PLUGIN=OFF \
+ -DINSTALL_QRANSAC_SD_PLUGIN=OFF \
+ -DINSTALL_QKINECT_PLUGIN=OFF \
+ -DINSTALL_QBLUR_PLUGIN=OFF \
+ -DINSTALL_QEDL_PLUGIN=OFF \
+ -DINSTALL_QPCV_PLUGIN=OFF \
+ -DINSTALL_QDUMMY_PLUGIN=OFF \
+ -DINSTALL_QSSAO_PLUGIN=OFF
+
+ while true; do
+ read -p "Do you want to edit the cmake configuration? [y/N]" yn
+ yn=${yn:-n}
+ case $yn in
+ [Yy] ) cmake-gui ..
+ break;;
+ [Nn] ) break;;
+# * ) echo "Please answer y or n.";;
+ esac
+ done
+
+ make
+}
+
+package() {
+ cd "$srcdir/trunk/build"
+ make DESTDIR="$pkgdir/" install
+
+ mkdir -p "${pkgdir}/usr/lib"
+ mv "${pkgdir}/opt/lib/"* "${pkgdir}/usr/lib"
+ rm -r "${pkgdir}/opt/lib/"
+
+ mkdir -p "${pkgdir}/usr/bin"
+ cd "$pkgdir/usr/bin"
+ ln -s "../../opt/ccViewer/ccViewer"
+ ln -s "../../opt/CloudCompare/CloudCompare"
+
+}