blob: 9774875abcbadac0f31836a2c7e9b3c84006273c (
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
|
# Maintainer: Andrew Sun <adsun701@gmail.com>
# Contributor: Hannes Graeuler < hgraeule [at] uos [dot] de >
pkgname=sfcgal
pkgver=1.3.7
pkgrel=1
pkgdesc="Wrapper around the CGAL library that intents to implement 2D and 3D operations on OGC standards models"
arch=('i686' 'x86_64')
url="https://oslandia.github.io/SFCGAL/index.html"
license=('GPL2')
provides=('sfcgal')
depends=('cgal>=4.1' 'boost' 'gmp' 'mpfr' 'openscenegraph')
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/Oslandia/SFCGAL/archive/v${pkgver}.tar.gz")
sha256sums=('30ea1af26cb2f572c628aae08dd1953d80a69d15e1cac225390904d91fce031b')
build() {
cd ${srcdir}/SFCGAL-${pkgver}
mkdir -p build && cd build
cmake -Wno-dev \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=lib \
-DSFCGAL_BUILD_EXAMPLES=1 \
-DSFCGAL_BUILD_TESTS=0 \
..
make
}
package() {
cd ${srcdir}/SFCGAL-${pkgver}/build
make DESTDIR=${pkgdir} install
# Remove conflict with cgal package
rm -rf ${pkgdir}/usr/include/CGAL
}
|