mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
52 lines
1.5 KiB
Bash
52 lines
1.5 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=3.6.0
|
|
pkgrel=2
|
|
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')
|
|
# TODO: https://github.com/Ultimaker/CuraEngine/blob/master/CMakeLists.txt#L26
|
|
# Package polyclipping in the repos
|
|
checkdepends=('cppunit')
|
|
makedepends=('cmake' 'git')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/${pkgname}/archive/${pkgver}.tar.gz"
|
|
"fix_mocksocket_tests.patch::https://github.com/Ultimaker/CuraEngine/commit/7349c981135f6460640c23527f02dea650304467.patch")
|
|
sha512sums=('340dad4c697fb0d7b633091715a904ae7df8973626e217ae2528d0121723c07a6cf0bbc740b9ad9980f3b288fa690c9c3ee43d90914264855dace007bbb334c8'
|
|
'72d424cb96db26e7e4170d2e208f3dbbabbea19e5e7c6a02b53ef47eddbcbb4dc20d045b2065e91acd8dc5f481345a9a3b5568781db9445d3af697555aba847e')
|
|
|
|
prepare() {
|
|
cd CuraEngine-${pkgver}
|
|
patch -Np1 -i $srcdir/fix_mocksocket_tests.patch
|
|
}
|
|
|
|
build() {
|
|
cd CuraEngine-${pkgver}
|
|
mkdir -p build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_TESTS=OFF \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd CuraEngine-${pkgver}/build
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd CuraEngine-${pkgver}/build
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|