summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e0933afaa58405437f6aa3d4e6bc3885806f601 (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
# Original Package: Dario Pellegrini <pellegrini.dario@gmail.com>
# Maintainer: Dario Pellegrini <pellegrini.dario@gmail.com>

pkgname=lib-fast-winding-number
pkgver=20181123
pkgrel=1
pkgdesc='Code for fast approximate generalized winding number (solid angle) computation for triangle soups'
arch=('any')
license=('MIT')
makedepends=('git' 'cmake')
depends=('intel-tbb')
# Using the pymesh fork instead of the original from sideeffects, as it includes cmake scripts
url='https://github.com/PyMesh/WindingNumber/'
provides=(lib-fast-winding-number)
conflicts=()

source=('git+https://github.com/PyMesh/WindingNumber.git')
md5sums=('SKIP')

_gitname='WindingNumber'

pkgver() {
  cd "$_gitname"
  git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
  #git describe --always --tags | sed 's/-/./g'
}

build() {
  mkdir -p "$_gitname/build"
  cd "$_gitname/build"

  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
  make
  make tests
}

package() {
  cd "$_gitname/build"
  make DESTDIR="$pkgdir/" install
}