blob: 8a5590cdef84cc04002babdc1666a75ac2cf7737 (
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
56
57
58
59
60
61
62
|
# Maintainer: xgjmibzr <xgjmibzr@gmail.com>
pkgname=superslicer-bin
pkgver=2.5.59.13
_pkgtag=$pkgver
_appimage=SuperSlicer-ubuntu_20.04-$_pkgtag.AppImage
pkgrel=1
pkgdesc="G-code generator for 3D printers (Creality, RepRap, Makerbot, Ultimaker etc.) (binary AppImage)"
arch=('x86_64')
url="https://github.com/supermerill/SuperSlicer"
license=('AGPL3')
depends=('zlib' 'fuse2' 'glu')
options=('!strip' '!debug')
replaces=('slic3r++')
conflicts=('superslicer' 'superslicer-git' 'superslicer-prerelease')
source=("$url/releases/download/$_pkgtag/$_appimage"
"superslicer.patch"
)
sha256sums=('332dfbb7046fc12c1936900be2a85ce0f13031b381edf266f8c6d08d94730da4'
'a2d8092e5ec12e96d487d55b564f56c2df5bd41a3be066734b94465695a6c404')
b2sums=('cb69a4f427f6274f276800fea96f18fd098bbfbe56ebe96972383891d65b7916a731275e3a4f6738f2ee5bfd1ebf05b9dc84613045bdaa544a463347bfea83e1'
'7547a6cc945948e637413b55af6a5a68fb6c08e8d5b3c03b137134cc5ed4f399b3d666985be5c2103240d3ae56d591ab9f02b5237a01978d422673247fef7061')
noextract=("${_appimage}")
prepare() {
chmod +x ${srcdir}/${_appimage}
${srcdir}/${_appimage} --appimage-extract SuperSlicer.desktop
${srcdir}/${_appimage} --appimage-extract 'resources/icons/SuperSlicer_*px.png'
}
build() {
# Update version in patch file
sed -i "s/pkgver/${pkgver}/" ${srcdir}/superslicer.patch
# Patch .desktop so it will work outside of AppImage container
patch -Np0 < ${srcdir}/superslicer.patch
# Fix permissions; .AppImage permissions are 700 for all directories
#chmod -R a-x+rX squashfs-root/resources
}
package() {
# AppImage
install -Dm 755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${_appimage}"
#install -dm 755 "${pkgdir}/opt/${pkgname}/"
#cp "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${_appimage}"
# Desktop file
install -Dm 644 "${srcdir}/squashfs-root/SuperSlicer.desktop"\
"${pkgdir}/usr/share/applications/SuperSlicer.desktop"
# Icon images
# Copy icons
for i in 32 128 192 ; do
install -Dm 0644 "${srcdir}/squashfs-root/resources/icons/SuperSlicer_${i}px.png" \
"${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/SuperSlicer.png"
done
# Symlink executable
install -dm 755 "${pkgdir}/usr/bin"
ln -s "/opt/${pkgname}/${_appimage}" "${pkgdir}/usr/bin/superslicer"
}
|