summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d626d8e248a2a9dda318effb930cb2649ff284f (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
# Maintainer: TilCreator <signup dot aur at tc minus j dot de>

pkgname='openscad-lasercut-git'
_gitname='lasercut'
pkgver=r79.1b1c738
pkgrel=1
pkgdesc='Module for openscad, allowing 3d models to be created from 2d lasercut parts'
url='https://github.com/bmsleight/lasercut.git'
license=(
 'BSD 2-Clause'
)
source=(
 "git+https://github.com/bmsleight/lasercut.git"
)
sha512sums=(
 'SKIP'
)
arch=(
 'any'
)
depends=(
 'openscad'
)
install=openscad-lasercut-git.install

pkgver() {
 cd "$_gitname"
 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
 # nop
 cat /dev/null
}

package() {
 mkdir -p $pkgdir/usr/share/openscad/libraries/lasercut/
 cd "$_gitname"
 install -Dm 744 "lasercut.scad" "$pkgdir/usr/share/openscad/libraries/lasercut/lasercut.scad"
 install -Dm 755 "convert-2d.sh" "$pkgdir/usr/bin/convert-2d"
}