void-packages/srcpkgs/embb/template
2021-04-12 08:29:02 +07:00

37 lines
974 B
Bash

# Template file for 'embb'
pkgname=embb
version=1.0.0
revision=3
build_style=cmake
configure_args="-DUSE_C11_AND_CXX11=ON -DBUILD_SHARED_LIBS=ON
-DBUILD_TESTS=OFF -DINSTALL_PREFIX=/usr"
short_desc="Library for parallel programming of embedded systems"
maintainer="Florian Eich <flrn@nrmncr.net>"
license="BSD-2-Clause"
homepage="https://embb.io/"
distfiles="https://github.com/siemens/embb/releases/download/v${version}/embb-${version}.tar.gz"
checksum=a392c710df719bbb1513dd9a6835ab9d73494d7355a47f17e818179fea64dcc8
post_install() {
vlicense COPYING.md
vmkdir usr/lib/cmake
mv ${DESTDIR}/usr/CMake/* ${DESTDIR}/usr/lib/cmake
}
embb-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.a"
}
}
embb-doc_package() {
short_desc+=" - documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc
}
}