blob: 3a1445f986790bd4f85782b0d7173a22d71c9a9a (
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: Denys Zariaiev <denys.zariaiev@gmail.com>
pkgname=chitubox-free-bin
pkgver=1.9.0
pkgrel=1
pkgdesc="All-in-one SLA/DLP/LCD Slicer"
makedepends=('xdg-user-dirs')
url="https://www.chitubox.com/download.html"
arch=("any")
license=("Commercial")
DOWNLOADS_DIR=`xdg-user-dir DOWNLOAD`
ARCHIVE_NAME="CHITUBOX_V${pkgver}.tar.gz"
DIR_NAME="CHITUBOX V${pkgver}"
if [ ! -f ${PWD}/$ARCHIVE_NAME ]; then
if [ -f $DOWNLOADS_DIR/$ARCHIVE_NAME ]; then
ln -sfn $DOWNLOADS_DIR/$ARCHIVE_NAME ${PWD}
else
msg2 ""
msg2 "Please download the archive with ChiTuBox binaries v${pkgver} from https://www.chitubox.com/download.html"
msg2 "You can either place it at '${PWD}/$ARCHIVE_NAME' or '$DOWNLOADS_DIR/$ARCHIVE_NAME'"
msg2 ""
fi
fi
options=(!strip)
source=(
"local://$ARCHIVE_NAME"
"local://chitubox-free.desktop"
"local://launcher"
)
sha256sums=(
"82ef2f36ee92238010e437b2e39494cee1a9ab0969e9507673a497b7633bf22c"
"fdd0c1595cfa7ef97ae850b83de328db55150d76f42e6c472167bcc80f87ea47"
"02fb0cfac1a04d8cc71345a6cf4921c92abcbfdd09e010604a1bc891657a2894"
)
package()
{
# binary data
install -d "$pkgdir"/opt
mv "${srcdir}/$DIR_NAME" "${pkgdir}/opt/chitubox-free"
# launcher
install -d "$pkgdir"/usr/bin
install -Dm755 launcher "$pkgdir"/usr/bin/chitubox-free
# desktop file
install -Dm644 chitubox-free.desktop "$pkgdir"/usr/share/applications/chitubox-free.desktop
}
|