summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e306e8d8f06d4636321843b1470f99c1a432ac4 (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
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>

pkgname=python-pynest2d-git
_pkgname=pynest2d
pkgver=4.11.0.r0.gbaec470
pkgrel=1
pkgdesc="Python bindings for libnest2d"
arch=('any')
url="https://github.com/Ultimaker/pynest2d"
license=('LGPL3')
makedepends=(git sip4 cmake boost)
depends=(libnest2d python)
provides=(python-pynest2d)
conflicts=(python-pynest2d)
source=("git+https://github.com/Ultimaker/pynest2d")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"

  mkdir build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
}

package() {
  cd "$srcdir/$_pkgname/build"

  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: