summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fce5aceaf9f2d22e24cc8e48844da50b7b091bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
_name=poissonrecon
_fragment="#commit=c1b1214"
pkgname=${_name}
pkgver=11.0
pkgrel=2
pkgdesc="Screened Poisson Surface Reconstruction (and Smoothed Signed Distance Reconstruction)"
arch=('i686' 'x86_64')
url="http://www.cs.jhu.edu/~misha/Code/PoissonRecon/Version9.0/"
license=('MIT')
groups=('photogrametry')
depends=('glibc' 'gcc8-libs' 'libpng' 'libjpeg')
makedepends=('git' 'gcc8')
options=(!makeflags)
provides=('poissonrecon' 'ssdrecon' 'surfacetrimmer')
source=("${pkgname}::git+https://github.com/mkazhdan/PoissonRecon.git${_fragment}"
        "patch.diff::https://github.com/mkazhdan/PoissonRecon/commit/2fcb16ac782fac312dc3225bea33227cbc0d7488.diff")
md5sums=('SKIP'
         '2d86278cd9928c3ce7701c6b043d4d5d')

#pkgver() {
#  cd ${srcdir}/${pkgname}
#  # cutting off 'V' prefix that presents in the git tag
#  git describe --tags | sed 's/^V//;s/\([^-]*-g\)/r\1/;s/-/./g'
#}

prepare() {
  cd ${srcdir}/${pkgname}
  git apply -v ${srcdir}/*.diff
 sed -i -e 's/CC=gcc/CC=gcc-8/' -e 's/CXX=g++/CXX=g++-8/' Makefile
}

build() {
  cd ${srcdir}/${pkgname}
  
  make
}

package() {
  cd ${srcdir}/${pkgname}
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
  install -Dm755 Bin/Linux/PoissonRecon ${pkgdir}/usr/bin/poisson-recon
  install -Dm755 Bin/Linux/SSDRecon ${pkgdir}/usr/bin/ssd-recon
  install -Dm755 Bin/Linux/SurfaceTrimmer ${pkgdir}/usr/bin/surface-trimmer
}

# vim:set ts=2 sw=2 et: