summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4354f70435bbf300a9a2daa891ea9f712ed4369 (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
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>

# you can change color of rendered object here
# format: RGB
# scale: [0,1]

__color__="1,.5,0"

pkgname=stl-thumbnailer
pkgver=2
pkgrel=1
pkgdesc="Allow file managers (nautilus,caja etc) to geterate thumbnails for stl files using openscad"
arch=('any')
url="https://www.thingiverse.com/thing:258653"
license=('GPL')
groups=()
depends=(openscad python2)
makedepends=(sed)
source=("stl.thumbnailer"
        "stl.thumbnailer.py")
md5sums=('9c7df1b5640440193408b21620c1f91f'
         '8ab41a0aa264ecdeff07d427d35a21e1')

prepare() {
	cd ${srcdir}
	sed -i "s/__color__/$__color__/" stl.thumbnailer.py
}

package() {
	cd ${srcdir}
	install -D -m 755 stl.thumbnailer.py ${pkgdir}/usr/bin/stl.thumbnailer.py
	install -D -m 644 stl.thumbnailer ${pkgdir}/usr/share/thumbnailers/stl.thumbnailer
}