void-packages/srcpkgs/facter/template
Jürgen Buchmüller c669bff844
facter: update to 3.14.0
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-06-20 12:23:05 +02:00

32 lines
973 B
Bash

# Template file for 'facter'
pkgname=facter
version=3.14.0
revision=1
build_style=cmake
configure_args="-DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include
-DENABLE_CXX_WERROR=OFF"
hostmakedepends="ruby-devel"
makedepends="boost-devel cpp-hocon leatherman libblkid-devel libcurl-devel
ruby-devel yaml-cpp-devel"
depends="net-tools ruby"
short_desc="Collect and display system facts"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="Apache-2.0"
homepage="https://puppetlabs.com/facter"
distfiles="https://downloads.puppetlabs.com/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=c17a8ae549489217cf8854c5b52f2f511ec31b0f284c043bd77965479e7e2e4f
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
mips*) sed -i lib/CMakeLists.txt -e'/add_subdirectory(tests)/d' ;;
esac
}
facter-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}