blob: 2d66cd9f739d54a83ff0e830a25aa0835451b112 (
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
|
# Maintainer: Nestor Cagnoli <nestor[DOT]cagnoli[at]gmail[DOT]com>
# Maintainer: Michael Gruz <michael.gruz@gmail.com>
pkgname=cura-5-beta-bin
_pkgname=cura-5-beta-bin
_shortname=cura5
pkgver=5.7.0
#beta=-beta.1
subbeta=
pkgrel=2
pkgdesc='Cura is an open source slicing application for 3D printers (include betaversion)'
arch=('x86_64')
url="https://ultimaker.com/software/ultimaker-cura"
license=('LGPL3')
depends=('xdg-desktop-portal' 'xdg-desktop-portal-gtk')
optdepends=('cura-5-plugin-octoprint: Cura plugin which enables printing directly to OctoPrint and monitoring the progress'
'cura-5-plugin-octoprint-git: Cura plugin which enables printing directly to OctoPrint and monitoring the progress (latest git version)')
conflicts=('cura-5-bin' 'cura-5-modern-bin' 'cura-5-modern-beta-bin')
provides=('cura')
options=(!strip)
DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
source=(
"https://github.com/Ultimaker/Cura/releases/download/${pkgver}${beta}/Ultimaker-Cura-${pkgver}${beta}${subbeta}-linux-X64.AppImage"
"https://raw.githubusercontent.com/Ultimaker/Cura/${pkgver}${beta}${subbeta}/LICENSE"
"${_shortname}.sh"
"cura.desktop.patch"
)
sha256sums=('e4f68184f24aa9af0bc441d344d4cbaa47087c2d8f92a9935b1f5cd7e75cee4d'
'f361bfaa2b63576ba829b3fb608f3f8baf5c25df51ebaba8c3554a7f3108e87d'
'4b3de38326084d3ae1689596a6bd8673f2e2580d0be5d0710a0a31b4d8dde1f9'
'ee7ace053a8d8b6ae0fa1be2cc7c9dca9a352d8b190a5e27098acbdc65f0eb8e')
prepare() {
cd "${srcdir}"
chmod +x ${srcdir}/Ultimaker-Cura-${pkgver}${beta}${subbeta}-linux-X64.AppImage
${srcdir}/Ultimaker-Cura-${pkgver}${beta}${subbeta}-linux-X64.AppImage --appimage-extract 1>>/dev/null 2>>/dev/null
mv squashfs-root ${_shortname}
cd ${_shortname}
patch -Np0 < ${srcdir}/cura.desktop.patch
}
package() {
install -d "${pkgdir}/opt/"
cp -rf "${srcdir}/${_shortname}" "${pkgdir}/opt/"
install -d "${pkgdir}/usr/bin/"
install -Dm 755 "${srcdir}/cura5.sh" "${pkgdir}/usr/bin/${_shortname}"
install -Dm 755 "${srcdir}/cura5/cura-icon.png" "${pkgdir}/usr/share/pixmaps/cura5-icon.png"
install -Dm 644 "${srcdir}/cura5/com.ultimaker.cura.desktop" "${pkgdir}/usr/share/applications/cura5.desktop"
install -Dm 644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|