summaryrefslogtreecommitdiff
path: root/python-pynest2d/PKGBUILD
blob: 98e22e9b038d1427293d3e82fa6988402f34b69c (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
41
42
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Jelle van der Waa <jelle@archlinux.org>

pkgname=python-pynest2d
pkgver=4.12.0
pkgrel=6
pkgdesc="Python bindings for libnest2d"
arch=(x86_64)
url="https://github.com/Ultimaker/pynest2d"
license=("LGPL")
_pinned_dependencies=(
  'gcc-libs=12.2.1'
  'glibc>=2.36'
  'nlopt=2.7.1'
  'polyclipping=6.4.2'
)
depends=(
  'python>=3.10'
  'python<3.11'
  'polyclipping'
  'nlopt'
  "${_pinned_dependencies[@]}"
)
makedepends=(sip4 cmake boost libnest2d)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Ultimaker/pynest2d/archive/${pkgver}.tar.gz)
sha512sums=('67451e3817aa308827683153c9f1fae670d95d393fad3b9b10831f7e255469df3be73fa2f90101c6dbf4034c06b51c4b3d9a4aa242f36325bb943003b0ce1842')

prepare() {
  cd pynest2d-${pkgver}

  mkdir build
}

build() {
  cd pynest2d-${pkgver}/build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
}

package() {
  cd pynest2d-${pkgver}/build
  make DESTDIR="${pkgdir}" install
}