# Maintainer: Erich Eckner # Contributor: Kevin MacMartin # Contributor: mstmob # Contributor: xiota _pkgname=cura pkgname=$_pkgname-bin pkgver=5.2.2 pkgrel=2 pkgdesc='State-of-the-art slicer app to prepare your 3D models for your 3D printer' url='https://ultimaker.com/software/ultimaker-cura' license=('LGPL3') arch=('x86_64') _pinned_dependencies=( 'gcc-libs=12.2.1' 'glibc>=2.36' 'gmp=6.2.1' 'gnutls=3.7.8' 'graphite=1:1.3.14' 'gst-plugins-base-libs=1.22.0' 'gstreamer=1.22.0' 'libatk-1.0.so=0' 'libatk-bridge-2.0.so=0' 'libatspi.so=0' 'libavahi-client.so=3' 'libavahi-common.so=3' 'libblkid.so=1' 'libbrotlicommon.so=1' 'libbrotlidec.so=1' 'libcairo.so=2' 'libcap.so=2' 'libcom_err.so=2' 'libcrypto.so=3' 'libcups=1:2.4.2' 'libdatrie.so=1' 'libdbus-1.so=3' 'libdrm=2.4.114' 'libEGL.so=1' 'libepoxy.so=0' 'libexpat.so=1' 'libffi.so=8' 'libfontconfig.so=1' 'libfreetype.so=6' 'libfribidi.so=0' 'libgcrypt=1.10.1' 'libgdk-3.so=0' 'libgdk_pixbuf-2.0.so=0' 'libgio-2.0.so=0' 'libglib-2.0.so=0' 'libGL.so=1' 'libgmodule-2.0.so=0' 'libgobject-2.0.so=0' 'libgpg-error=1.46' 'libgssapi_krb5.so=2' 'libgthread-2.0.so=0' 'libgtk-3.so=0' 'libharfbuzz.so=0' 'libhogweed.so=6' 'libicudata.so=72' 'libicui18n.so=72' 'libicuuc.so=72' 'libidn2.so=0' 'libjpeg.so=8' 'libk5crypto.so=3' 'libkeyutils.so=1' 'libkrb5.so=3' 'libkrb5support.so=0' 'liblzma.so=5' 'libmount.so=1' 'libnettle.so=8' 'libp11-kit.so=0' 'libpango-1.0.so=0' 'libpangocairo-1.0.so=0' 'libpangoft2-1.0.so=0' 'libpcre2-8.so=0' 'libpixman-1.so=0' 'libpng=1.6.39' 'libreadline.so=8' 'libsasl2.so=3' 'libssl.so=3' 'libsystemd.so=0' 'libtasn1=4.19.0' 'libthai.so=0' 'libtirpc=1.3.3' 'libtool=2.4.7+4+g1ec8fa28' 'libunistring.so=5' 'libuuid.so=1' 'libwayland-client.so=0' 'libwayland-cursor.so=0' 'libwayland-egl.so=1' 'libx11=1.8.4' 'libxcb=1.15' 'libxcomposite=0.4.6' 'libxcursor=1.2.1' 'libxdamage=1.1.6' 'libxext=1.3.5' 'libxfixes=6.0.0' 'libxi=1.8' 'libxinerama=1.1.5' 'libxkbcommon.so=0' 'libxkbcommon-x11.so=0' 'libxrandr=1.5.3' 'libxrender=0.9.11' 'libzstd.so=1' 'lz4=1:1.9.4' 'ncurses=6.4' 'zlib=1:1.2.13' ) depends=('fuse2' 'xdg-desktop-portal' "${_pinned_dependencies[@]}") makedepends=('util-linux') provides=($_pkgname) conflicts=($_pkgname) options=('!strip') source=( "https://github.com/Ultimaker/Cura/releases/download/${pkgver}/Ultimaker-Cura-${pkgver}-linux-modern.AppImage" 'AppRun-Ultimaker-Cura.patch' 'AppRun-CuraEngine.patch' ) sha512sums=('3b3a1b674eb390a53f382c4ae10cc877f471ba7efbabf00330238d53baeb47a1c510c3414811840cb45a438f23fe42b50402c7c78a20d0e77e6cedaa92bdccd6' 'bf5fa289d8f4193e186a0d8d7e5dc5e902789674bf6c2a068655d639f1be1e7c9d9757c4709801f10c86501c6722a94a97051f662f6d1d85294d1cba16145f63' '073859530af23e43eaa576b500bc86ce2a9611a9aa1d9435b2cff949f9ce9e762f6891aa930cb4f135af1e4eca9657c69a288a2d43f75641ae75eb56ecf204f5') prepare() { [[ -d squashfs-root ]] && rm -rf squashfs-root chmod 755 Ultimaker-Cura-${pkgver}-linux-modern.AppImage ./Ultimaker-Cura-${pkgver}-linux-modern.AppImage --appimage-extract patch -Np1 -F5 -o Ultimaker-Cura squashfs-root/AppRun AppRun-Ultimaker-Cura.patch patch -Np1 -F5 -o CuraEngine squashfs-root/AppRun AppRun-CuraEngine.patch hardlink --content --maximize squashfs-root } package() { install -Dm755 Ultimaker-Cura "$pkgdir/usr/bin/Ultimaker-Cura" ln -s /usr/bin/Ultimaker-Cura "$pkgdir/usr/bin/cura" install -Dm755 CuraEngine "$pkgdir/usr/bin/CuraEngine" ln -s /usr/bin/CuraEngine "$pkgdir/usr/bin/cura-engine" install -Dm644 squashfs-root/cura.desktop "$pkgdir/usr/share/applications/cura.desktop" install -Dm644 squashfs-root/cura-icon.png "$pkgdir/usr/share/pixmaps/cura-icon.png" install -dm755 "$pkgdir/opt" mv squashfs-root "$pkgdir/opt/ultimaker-cura" }