5e510a1737
Closes: #12767 [via git-merge-pr]
33 lines
951 B
Bash
33 lines
951 B
Bash
# Template file for 'facter'
|
|
pkgname=facter
|
|
version=3.11.0
|
|
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=64126d8c03b9c052f52f53720f643118e81544b0d5801ad491cb5926d3455666
|
|
|
|
pre_configure() {
|
|
# Subdirectory does not exist (in distfile).
|
|
sed -i CMakeLists.txt -e "/^add_subdirectory(locales)/d"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
facter-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
}
|
|
}
|