105 lines
3.5 KiB
Bash
105 lines
3.5 KiB
Bash
# Template file for 'kicad-doc'
|
|
# XXX: keep in sync with kicad
|
|
pkgname=kicad-doc
|
|
version=8.0.3
|
|
revision=1
|
|
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="39e769c823d8e59e86fe698b7d17526dea3e4f68726f03a3a90d56ffa58fb249
|
|
08cfb62bbeb0dfc221738f477336e9184f4e3f544d52b6d74f405b5ecab31aad
|
|
63292dc52757f2229eb2f93c3c69941cbc9ef3cb62c010294a2d21d7e235b66b
|
|
081587a087b3d4e2675d34a814a8579f66d2aaad9c4ad9be57c4eacdee9889df
|
|
a8c5943fc7b98c6123b6deeec4d061378fae4fa0e7b462e5765f72cea27f9061"
|
|
|
|
# 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"
|
|
}
|