blob: 82f1e8dab28ffe87c11cf5204c0a32d08ae7d3c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Kevin MacMartin <prurigro@gmail.com>
# Contributor: mstmob
# Contributor: xiota
# Contributor: thorou
# Contributor: sausix
_pkgname=cura
pkgname=$_pkgname-bin
pkgver=5.9.0
pkgrel=1
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')
depends=('fuse2' 'xdg-desktop-portal')
optdepends=('mesa: for use with the closed source nvidia driver under wayland')
makedepends=('util-linux')
provides=($_pkgname)
conflicts=($_pkgname)
options=('!strip')
source=(
"https://github.com/Ultimaker/Cura/releases/download/${pkgver}/UltiMaker-Cura-${pkgver}-linux-X64.AppImage"
'AppRun.env.patch'
'UltiMaker-Cura'
)
sha512sums=(
'53a350de79c1be6132f388c0e54430c646cdc9dca3bfee7ae6995f1e52e7784b6a130543bc7eced33ffd796129134ed7933d5c78885210cbb0cb7a6c3a3c92be'
'de8a5af894c2b8dc7cd3bffd8909c5bce52aee65c04b3cb3c95828827f040a2e1339534c056ebcc729ae9a98d19336a33afc3e4a7aa3f89a1c36d935b055bfc0'
'706bfd5d7f46ba859fa1caddefe18504a8e82cd494d0279b5207191cdf2bca102e47bb4feee94d93d41a36e2f4aa5d71d2d2a398cbdcee8fd5c3d22b6b00a2de'
)
prepare() {
[[ -d squashfs-root ]] && rm -rf squashfs-root
chmod 755 UltiMaker-Cura-${pkgver}-linux-X64.AppImage
./UltiMaker-Cura-${pkgver}-linux-X64.AppImage --appimage-extract
hardlink --content --maximize squashfs-root
cd squashfs-root
sed -i 's|^Comment=.*|Comment=Cura converts 3D models into paths for a 3D printer. It prepares your print for maximum accuracy, minimum printing time and good reliability with many extra features that make your print come out great.|' com.ultimaker.cura.desktop
sed -i 's|^Icon=|Icon=/usr/share/pixmaps/|' com.ultimaker.cura.desktop
printf '%s\n' 'MimeType=model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;image/bmp;image/gif;image/jpeg;image/png;text/x-gcode;application/x-amf;application/x-ply;application/x-ctm;model/vnd.collada+xml;model/gltf-binary;model/gltf+json;model/vnd.collada+xml+zip;' >> com.ultimaker.cura.desktop
printf '%s\n' 'Keywords=3D;Printing;' >> com.ultimaker.cura.desktop
# patch -p1 < ../AppRun.env.patch
}
package() {
install -Dm755 UltiMaker-Cura "$pkgdir/usr/bin/UltiMaker-Cura"
ln -s /usr/bin/UltiMaker-Cura "$pkgdir/usr/bin/cura"
install -Dm644 squashfs-root/com.ultimaker.cura.desktop "$pkgdir/usr/share/applications/com.ultimaker.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"
rm "$pkgdir/opt/ultimaker-cura/libwayland-client.so.0" # Use the system version of libwayland-client.so.0 so it's compatible with the latest mesa (thanks sausix)
}
|