aboutsummaryrefslogtreecommitdiffstats
path: root/community/curaengine/APKBUILD
blob: 605ca2ea12bafe06398a2406d08034c87ea09187 (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
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=curaengine
_pkgname=CuraEngine
# If you plan to upgrade curaengine, you also need to upgrade libarcus at the same time
pkgver=4.12.1
pkgrel=0
pkgdesc="3D slicer engine"
url="https://github.com/Ultimaker/CuraEngine"
license="AGPL-3.0-or-later"
arch="all !x86" # test suite fails on x86
makedepends="protobuf-dev py3-sip-dev python3-dev cmake libarcus-dev"
source="https://github.com/Ultimaker/CuraEngine/archive/$pkgver/CuraEngine-$pkgver.tar.gz
	rpath.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DBUILD_TESTS=ON
	cmake --build build
}

check() {
	cmake --build build --target test
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="
c0c703ec9c7fb05389806f45174d45dd65bece169e3ad88aa1744091ce3c3c1e1e4f5af32cb55cfa9f1a4a8bffe0a008d5924a6e5d02baed00996c9112fbafef  CuraEngine-4.12.1.tar.gz
2c7aea003b2917422e0cfbb79cc55e1b40a52f7f5a06770b97460613e64be0d4b8b5fe46327adac0192981e47920396da6fe3ef93372f81734a6d4b43d46ef34  rpath.patch
"