diff options
author | Julian Daube | 2020-05-22 15:46:26 +0200 |
---|---|---|
committer | Julian Daube | 2020-05-22 15:46:26 +0200 |
commit | 1920c71227c53a708eee90a05847ff43b9ce4014 (patch) | |
tree | 343ddbd15a486cf8c8240f2c2058c0e1533b9ab8 /PKGBUILD | |
download | aur-kicad-interactivehtmlbom-git.tar.gz |
initial version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e78cfd05281 --- /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') + |