void-packages/srcpkgs/facter/template

34 lines
965 B
Bash

# Template file for 'facter'
pkgname=facter
version=3.5.0
revision=1
build_style=cmake
configure_args="-DRUBY_CONFIG_INCLUDE_DIR=${XBPS_CROSS_BASE}/usr/include"
hostmakedepends="ruby-devel"
makedepends="libressl-devel libcurl-devel libblkid-devel ruby-devel yaml-cpp-devel
boost-devel leatherman cpp-hocon"
depends="ruby net-tools"
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=e9ac146293ab00694fb049379d3d6fb9ea5bb397d174c97a65d22f9b8b62e178
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
}
}