blob: ccbba58a7b87d6458bd7dbc92752ef2fcfdb5d3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
pkgname=clipper2
pkgver=1.4.0
pkgrel=1
pkgdesc="Polygon Clipping and Offsetting"
arch=('x86_64')
url="https://github.com/AngusJohnson/Clipper2"
license=('BSL-1.0')
depends=('glibc' 'gcc-libs')
source=("https://github.com/AngusJohnson/Clipper2/archive/refs/tags/Clipper2_${pkgver}.tar.gz")
sha256sums=('b83f71bb6a338f4f82116089c5ae867dbc43a2d651b5441380970dd966edd959')
build () {
cd "$srcdir"/Clipper2-Clipper2_${pkgver}/CPP
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -DCLIPPER2_TESTS=OFF -DCLIPPER2_EXAMPLES=OFF -DCLIPPER2_UTILS=OFF .
make
}
package () {
cd "$srcdir"/Clipper2-Clipper2_${pkgver}/CPP
make install DESTDIR="$pkgdir"
}
|