upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libsavitar / repos / community-x86_64 / PKGBUILD
blobefed0c8c3831775b9a3a85d26634e3b9f7dc5ced
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Contributor: neodarz <neodarz@neodarz.net>
4 pkgname=libsavitar
5 pkgver=4.13.0
6 pkgrel=1
7 pkgdesc="C++ implementation of 3mf loading with SIP python bindings"
8 arch=('x86_64')
9 url="https://github.com/Ultimaker/libsavitar"
10 license=('AGPL')
11 depends=('python' 'pugixml')
12 makedepends=('cmake' 'python-sip4' 'sip4')
13 source=($pkgname-$pkgver.tar.gz::https://github.com/Ultimaker/libSavitar//archive/${pkgver}.tar.gz use_system_pugixml.patch)
14 sha512sums=('a446131c0bbcc34e55c093032af823b9750797f06297bea9fd4d64838e793811e71679a1f6ae99be9fc9382a23e8763140147c7a6eea0a310f6f2d40b53be3bf'
15             'b312dcf43bf334001da98da93388da99731eacf417fe3a9dff51831bdd1f0ab5487377925bebce05e227533be2680b1a45f3203b0a7b9de9a77280a206ec7b26')
17 prepare() {
18   cd "libSavitar-${pkgver}"
19   sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages,DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt
20   sed -i 's,DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura),DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/cura),g' CMakeLists.txt
22   # don't install a second system pugixml; WONTFIX upstream due to:
23   # "It's been decided that an external dependency makes setting up your
24   # development environment for Cura needlessly difficult."
25   patch -Np1 -i "$srcdir"/use_system_pugixml.patch
28 build() {
29   cd "libSavitar-${pkgver}"
30   mkdir  build && cd build
31   cmake .. \
32     -DCMAKE_INSTALL_PREFIX=/usr \
33     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
34     -DCMAKE_BUILD_TYPE=Release
35   make
38 package() {
39   cd "libSavitar-${pkgver}/build"
40   make DESTDIR="${pkgdir}" install