33 lines
1000 B
Bash
33 lines
1000 B
Bash
# Template file for 'facter'
|
|
pkgname=facter
|
|
version=3.14.11
|
|
revision=4
|
|
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-devel libblkid-devel libcurl-devel
|
|
ruby-devel yaml-cpp-devel"
|
|
depends="net-tools ruby"
|
|
short_desc="Collect and display system facts"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://puppet.com/docs/puppet/latest/facter.html"
|
|
distfiles="https://downloads.puppetlabs.com/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=098a318a68124d8d8db4b152888c0ecf2ff0e48228a6fe064d907a87f72e8cbd
|
|
|
|
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"
|
|
}
|
|
}
|