summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ed96dde5caa527073f77c018fe5b8d46c838f11 (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
pkgname=kisslicer2
pkgver=1.6.2
pkgrel=1
pkgdesc="KISSlicer is a fast, easy-to-use, cross-platform program that takes 3D files (STL) and generates path information (G-code) for a 3D Printer.  The FREE version has all the features needed for the hobbyist who uses a single-head machine. Alpha version of V2"
arch=('i686' 'x86_64')
url="http://www.kisslicer.com/index.html"
license=('custom')
depends=(
	'libx11'
	'libgl'
)

conflicts=('kisslicer2')
provides=('kisslicer2')

# Sources
source=(
	"$pkgname.desktop"
	"$pkgname.sh"
	"$pkgname.png"
)
source_i686=('https://www.dropbox.com/sh/78y5ec24yx1ycbk/AAD0c1pyxFRMtSe8CLZxqEqYa/KISSlicer_Linux32_v2_alpha_1.6.2.zip')
source_x86_64=('https://www.dropbox.com/sh/78y5ec24yx1ycbk/AACN90y_A2vWZFCj8VZwRl1Oa/KISSlicer_Linux64_v2_alpha_1.6.2.zip')
# Checksums
sha256sums=('4530d61c67c1de95c329dc38449e259e290910802813da6944a72256998c5fbb'
            '878cc7872f68f4396d3774fde3e3c2b88488dc86db7dcd58eda2ab891c906217'
	    '17ec56ab667fc601b5282c8093e795cc65c6c73df25fdafd8ddd96436ea24589'
	   )
sha256sums_i686=('6766e9c4d1f73f4a19a8bc53f58750c7323ae0fd354a5433150d3bfe9954c2f6')
sha256sums_x86_64=('703f8db8518ab68b02184d9a5ee3e07b799a29313a8953a69e9186d93f796cad')

package() {

	cd "$srcdir/"

	# Creating needed directories
	install -dm755 "$pkgdir/opt/kisslicer/"

	# Program
	install -Dm755 "$srcdir/KISSlicer" "$pkgdir/opt/$pkgname/KISSlicer"
	install -Dm755 "$srcdir/$pkgname.png" "$pkgdir/opt/$pkgname/KISSlicer.png"
	install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname.sh"

	# Desktop launcher
	install -Dm755 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}