summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4621dfe01d9f6aac9cca291388245957c7666998 (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
# Maintainer: Jelle van der Waa <jelle@archlinux.org>

pkgname=polyclipping
pkgver=6.4.2
pkgrel=4
pkgdesc="Polygon clipping library"
arch=('x86_64')
url="https://sourceforge.net/projects/polyclipping/"
license=('Boost')
depends=('gcc-libs')
makedepends=('cmake')
source=("https://downloads.sourceforge.net/polyclipping/clipper_ver${pkgver}.zip")
sha256sums=('a14320d82194807c4480ce59c98aa71cd4175a5156645c4e2b3edd330b930627')

build() {
  cd "${srcdir}"
  mkdir -p build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DVERSION=$pkgver ../cpp
  make
}

package() {
  cd "${srcdir}/build"
  make install DESTDIR="$pkgdir"
  install -d "$pkgdir/usr/share/licenses/$pkgname"
}