mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-13 04:37:03 +02:00
combining *all* the kicad templates was a mistake. if kicad needs to be rebuilt (e.g. for a libgit2 update), there is zero reason why the libraries and docs need to be rebuilt. thus, all of them have been split into their own template. This should be kept in sync with the main template.
104 lines
3.5 KiB
Bash
104 lines
3.5 KiB
Bash
# Template file for 'kicad-doc'
|
|
# XXX: keep in sync with kicad
|
|
pkgname=kicad-doc
|
|
version=8.0.1
|
|
revision=2
|
|
build_wrksrc="${pkgname}-${version}"
|
|
build_style=cmake
|
|
configure_args="-DBUILD_FORMATS=html"
|
|
hostmakedepends="ruby-asciidoctor po4a"
|
|
depends="kicad>=${version}"
|
|
short_desc="Electronic schematic and PCB design software - documentation"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="GPL-3.0-or-later, CC-BY-3.0"
|
|
homepage="http://kicad.org"
|
|
changelog="https://www.kicad.org/blog/categories/Release-Notes/"
|
|
distfiles="https://gitlab.com/kicad/services/kicad-doc/-/archive/${version}/kicad-doc-${version}.tar.gz
|
|
https://gitlab.com/kicad/libraries/kicad-templates/-/archive/${version}/kicad-templates-${version}.tar.gz
|
|
https://gitlab.com/kicad/libraries/kicad-symbols/-/archive/${version}/kicad-symbols-${version}.tar.gz
|
|
https://gitlab.com/kicad/libraries/kicad-footprints/-/archive/${version}/kicad-footprints-${version}.tar.gz
|
|
https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/${version}/kicad-packages3D-${version}.tar.gz"
|
|
checksum="2fef2a52377e32a6d8a18a6bfd98ab3e3a75b3f23e13a741491eb9c414ee265b
|
|
5aa3b72d89552069155a538a73fd19428f7dd77ec7bf51814591dd460a88c8d7
|
|
98a11b3a33f18ea02981c95b038138e86c31cb388a8bbd30a1edcc4ad297e0f8
|
|
24e6c9d10869605b83d56ed091e5e56a9f4439de38db73c1d1d34d1cbf3d3272
|
|
77c74fa420373a97aa5dca1bed26b0bed065d1c696010bee5238dc76d06a168b"
|
|
|
|
# none of these packages contain ELFs, but do contain a bunch of files,
|
|
# so skip stripping and elf_in_usrshare lint to speed things up significantly
|
|
nostrip=yes
|
|
ignore_elf_dirs="/usr/share/kicad"
|
|
|
|
post_configure() {
|
|
for subpkg in footprints packages3D symbols templates; do
|
|
msg_normal "kicad-${subpkg}-${version}_${revision}: running do_configure ...\n"
|
|
(
|
|
build_wrksrc="kicad-${subpkg}-${version}"
|
|
cd "../${build_wrksrc}" && do_configure
|
|
)
|
|
done
|
|
}
|
|
|
|
post_build() {
|
|
for subpkg in footprints packages3D symbols templates; do
|
|
msg_normal "kicad-${subpkg}-${version}_${revision}: running do_build ...\n"
|
|
(
|
|
cd "../kicad-${subpkg}-${version}" && do_build
|
|
)
|
|
done
|
|
}
|
|
|
|
kicad-footprints_package() {
|
|
short_desc="${short_desc/documentation/footprint libraries}"
|
|
license="CC-BY-SA-4.0"
|
|
depends="kicad>=${version}"
|
|
nostrip=yes
|
|
ignore_elf_dirs="/usr/share/kicad"
|
|
pkg_install() {
|
|
cd "../${pkgname}-${version}/build" && \
|
|
DESTDIR="${PKGDESTDIR}" ninja install
|
|
}
|
|
}
|
|
|
|
kicad-packages3D_package() {
|
|
short_desc="${short_desc/documentation/3D model libraries}"
|
|
license="CC-BY-SA-4.0"
|
|
depends="kicad>=${version}"
|
|
nostrip=yes
|
|
ignore_elf_dirs="/usr/share/kicad"
|
|
pkg_install() {
|
|
cd "../${pkgname}-${version}/build" && \
|
|
DESTDIR="${PKGDESTDIR}" ninja install
|
|
}
|
|
}
|
|
|
|
kicad-symbols_package() {
|
|
short_desc="${short_desc/documentation/schematic symbol libraries}"
|
|
license="CC-BY-SA-4.0"
|
|
depends="kicad>=${version}"
|
|
nostrip=yes
|
|
ignore_elf_dirs="/usr/share/kicad"
|
|
pkg_install() {
|
|
cd "../${pkgname}-${version}/build" && \
|
|
DESTDIR="${PKGDESTDIR}" ninja install
|
|
}
|
|
}
|
|
|
|
kicad-templates_package() {
|
|
short_desc="${short_desc/documentation/project templates}"
|
|
license="CC-BY-SA-4.0"
|
|
depends="kicad>=${version}"
|
|
nostrip=yes
|
|
ignore_elf_dirs="/usr/share/kicad"
|
|
pkg_install() {
|
|
cd "../${pkgname}-${version}/build" && \
|
|
DESTDIR="${PKGDESTDIR}" ninja install
|
|
}
|
|
}
|
|
|
|
kicad-library_package() {
|
|
short_desc="${short_desc/documentation/all libraries}"
|
|
depends="kicad-footprints>=${version}_${revision} kicad-packages3D>=${version}_${revision}
|
|
kicad-symbols>=${version}_${revision} kicad-templates>=${version}_${revision}"
|
|
build_style="meta"
|
|
}
|