summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e78cfd05281d76425c6bcad224f20131f1f9333 (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
# Maintainer: Julian Daube <joposter at gmail dot com>
# Contributor: Julian Daube <joposter at gmail dot com>
pkgname=kicad-interactivehtmlbom-git
pkgdesc="Interactive HTML BOM generation plugin for KiCad"
pkgver=v2.3.r15.g09afbae
pkgrel=1

url="https://github.com/openscopeproject/InteractiveHtmlBom"
arch=("any")
license=("MIT")

depends=("kicad>=5.1.0")

source=("$pkgname::git+https://github.com/openscopeproject/InteractiveHtmlBom.git")

pkgver() {
	cd "$pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	# copy plugin module
	cd "$srcdir/$pkgname"
	mkdir -p "$pkgdir/usr/share/kicad/scripting/plugins/InteractiveHtmlBom"
	cp -r InteractiveHtmlBom "$pkgdir"/usr/share/kicad/scripting/plugins/
	
	# install license
	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/InteractiveHtmlBom/LICENSE
}

md5sums=('SKIP')