summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 255eb19ae125899671f56d2e6948d6aaf319cd1e (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
# Maintainer: Alexander Daum <alexander.daum at mailbox dot org>

pkgname='openscad-threadlib-git'
_gitname='threadlib'
pkgver=r82.950ee06
pkgrel=1
pkgdesc='Library containing standard threads for OpenSCAD (git version)'
url='https://github.com/adrianschlatter/threadlib'
license=(
 'BSD'
)
source=(
 "git+https://github.com/adrianschlatter/threadlib.git"
)
sha512sums=(
 'SKIP'
)
arch=(
 'x86_64'
 'i686'
)
depends=(
 'openscad'
 'openscad-thread-profile-git'
)
provides=(
 'openscad-threadlib'
)
conflicts=(
 'openscad-threadlib'
)

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

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

package() {
 # ensure libraries folder exists
 mkdir -p $pkgdir/usr/share/openscad/libraries/threadlib
 cd "$_gitname"
 install -Dm644 *.scad "$pkgdir/usr/share/openscad/libraries/threadlib"
 install -Dm644 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}