summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD32
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9cd7672f8a5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = 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 = kicad-interactivehtmlbom-git::git+https://github.com/openscopeproject/InteractiveHtmlBom.git
+ md5sums = SKIP
+
+pkgname = kicad-interactivehtmlbom-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6e78cfd0528
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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')
+