mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
|
|
# Contributor: Grey Christoforo <first name [at] last name [dot] net>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - -DBUILD_TESTS=OFF
|
|
|
|
pkgname=curaengine
|
|
pkgver=4.12.0
|
|
pkgrel=1
|
|
pkgdesc="Engine for processing 3D models into 3D printing instruction for Ultimaker and other GCode based 3D printers."
|
|
url="https://github.com/Ultimaker/CuraEngine"
|
|
arch=('x86_64')
|
|
license=('AGPL')
|
|
depends=('arcus' 'polyclipping')
|
|
checkdepends=('cppunit')
|
|
makedepends=('cmake' 'git' 'gtest' 'rapidjson')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz")
|
|
sha512sums=('acf83b069dbcb41448c2625fca2903483347a6b868392461c53db5c78dcf21e0d1fae970269f3d30078564b129631ec43d1dd04dedf80d9b3ed951ba96d0f012')
|
|
|
|
|
|
build() {
|
|
cd CuraEngine-${pkgver}
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_TESTS=OFF \
|
|
-DUSE_SYSTEM_LIBS=ON \
|
|
-DCMAKE_BUILD_TYPE='None'
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd CuraEngine-${pkgver}/build
|
|
# This test fails in when instance->readMeshGroupMessage(mesh_message) is
|
|
# called in the buildchroot but not outside
|
|
ARGS="-E ArcusCommunicationPrivateTest" make test
|
|
}
|
|
|
|
package() {
|
|
cd CuraEngine-${pkgver}/build
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|