37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'facter'
|
|
pkgname=facter
|
|
version=3.12.1
|
|
revision=3
|
|
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 libblkid-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=57d62f5c9c97576fd3a246e7b9ea350bf600126265b674b64b418f0bc9972aed
|
|
|
|
CXXFLAGS="-Wno-catch-value -Wno-stringop-truncation"
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
mips*) sed -i lib/CMakeLists.txt -e'/add_subdirectory(tests)/d' ;;
|
|
esac
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|