blob: 63856c31690dd887344775e192cc7ef7317c0300 (
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
|
# Maintainer: David Hummel <hummeltech@sherpaguru.com>
pkgname=mapbox-polylabel
pkgver=2.0.1
pkgrel=1
pkgdesc="A fast algorithm for finding the pole of inaccessibility of a polygon"
arch=('any')
url="https://github.com/mapbox/polylabel"
license=('ISC')
checkdepends=('gcc13' 'git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mapbox/polylabel/archive/v${pkgver}.tar.gz")
sha256sums=('d51ec39f9f1bc46c551dfdf642f72057a8c2cde2c5e89bc70e0bd712fad63a75')
check() {
cd polylabel-"${pkgver}"
rm -rf .mason
# Mason is required to download some dependencies
git clone --depth=1 --branch=v0.23.0 https://github.com/mapbox/mason.git .mason
# GCC 14 won't build the test (without some modifications)
CC=gcc-13 CXX=g++-13 make test
}
package() {
install -dm755 "$pkgdir"/usr/include/mapbox "$pkgdir"/usr/share/licenses/"$pkgname"
install -Dm644 "$srcdir"/polylabel-"$pkgver"/include/mapbox/*.hpp "$pkgdir"/usr/include/mapbox/
# License
install -Dm644 "$srcdir"/polylabel-"$pkgver"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
|