PKGBUILDs/community/curaengine/PKGBUILD

53 lines
1.5 KiB
Bash
Raw Normal View History

2018-09-14 13:53:51 +00:00
# Maintainer: Jelle van der Waa <jelle@archlinux.org>
# Contributor: Grey Christoforo <first name [at] last name [dot] net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2019-03-12 23:40:47 +00:00
# - -DBUILD_TESTS=OFF
2018-09-14 13:53:51 +00:00
pkgname=curaengine
2018-11-18 17:09:23 +00:00
pkgver=3.6.0
2019-03-12 23:40:47 +00:00
pkgrel=2
2018-09-14 13:53:51 +00:00
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"
2018-11-18 17:09:23 +00:00
"fix_mocksocket_tests.patch::https://github.com/Ultimaker/CuraEngine/commit/7349c981135f6460640c23527f02dea650304467.patch")
sha512sums=('340dad4c697fb0d7b633091715a904ae7df8973626e217ae2528d0121723c07a6cf0bbc740b9ad9980f3b288fa690c9c3ee43d90914264855dace007bbb334c8'
2019-03-12 23:40:47 +00:00
'72d424cb96db26e7e4170d2e208f3dbbabbea19e5e7c6a02b53ef47eddbcbb4dc20d045b2065e91acd8dc5f481345a9a3b5568781db9445d3af697555aba847e')
2018-09-14 13:53:51 +00:00
prepare() {
cd CuraEngine-${pkgver}
2018-11-18 17:09:23 +00:00
patch -Np1 -i $srcdir/fix_mocksocket_tests.patch
2018-09-14 13:53:51 +00:00
}
build() {
cd CuraEngine-${pkgver}
mkdir -p build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=OFF \
-DCMAKE_BUILD_TYPE=Release
make
}
2018-11-18 17:09:23 +00:00
check() {
2018-09-14 13:53:51 +00:00
cd CuraEngine-${pkgver}/build
2018-11-18 17:09:23 +00:00
make test
2018-09-14 13:53:51 +00:00
}
2018-11-18 17:09:23 +00:00
package() {
2018-09-14 13:53:51 +00:00
cd CuraEngine-${pkgver}/build
2018-11-18 17:09:23 +00:00
make DESTDIR="${pkgdir}" install
2018-09-14 13:53:51 +00:00
}
# vim:set ts=2 sw=2 et: