void-packages/srcpkgs/facter/template
2018-08-23 16:08:01 -03:00

33 lines
960 B
Bash

# Template file for 'facter'
pkgname=facter
version=3.11.4
revision=1
build_style=cmake
configure_args="-DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include"
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.eu>"
license="Apache-2.0"
homepage="http://puppetlabs.com/facter"
distfiles="http://downloads.puppetlabs.com/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=b450ff0640cd32ea03e8bc55ecbf791477dbaea703dd8ceb8285334d25223c5a
if [ "$XBPS_GCC_VERSION_MAJOR" -ge 8 ]; then
CXXFLAGS+=" -Wno-catch-value -Wno-stringop-truncation"
fi
post_install() {
vlicense LICENSE
}
facter-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}