void-packages/srcpkgs/chef-client/template
2015-11-11 06:18:17 -06:00

26 lines
917 B
Bash

# Template file for 'chefdk'
pkgname=chef-client
version=12.5.1
revision=1
only_for_archs="x86_64 i686"
build_style=fetch
short_desc="Client for the Chef Systems Integration Framework"
maintainer="bougyman <bougyman@voidlinux.eu>"
license="apache2"
homepage="https://github.com/chef/chef"
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
_debarch=amd64
checksum=656a4c4a8fd64d74d1d970fb0d07076d6f1d8230d37d751f2c3698a52d82c070
else
_debarch=i386
checksum=d2e82528eca2b247cd59998bb9e0ac3df41614c97337c7d52f69051cafa83bd4
fi
distfiles="https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/10.04/${XBPS_TARGET_MACHINE}/chef_${version}-1_${_debarch}.deb"
do_install() {
ar p chef_${version}-1_${_debarch}.deb data.tar.gz | tar xzf - -C "${DESTDIR}"
mkdir -p "$DESTDIR"/usr/bin
for bin in chef-apply chef-client chef-shell chef-solo knife ohai;do
ln -s /opt/chef/bin/${bin} "$DESTDIR"/usr/bin/${bin}
done
}