# Maintainer: Maxim Kraev pkgname=chef-dk pkgver=0.16.28 pkgrel=1 _ubuntuver=raring _ubunturel=4 pkgdesc="The Chef Development Kit contains everything you need to start using Chef along with the tools essential to managing the code that runs your business." arch=('x86_64') url="https://downloads.chef.io/chef-dk/" license=('Apache') depends=() conflicts=( chef chef-solo ) source=("https://packages.chef.io/stable/ubuntu/12.04/chefdk_${pkgver}-1_amd64.deb") sha512sums=('89787cb17b7e1e0dd99b6248e63d1e7b93ca5ceaf5bce51a44312d99d6db7c3be96aafdaa29236619c7676493750ee046ad0797ca99ed80e5b357b0e1da398ff') package() { cd "$srcdir" bsdtar -xf data.tar.gz -C "$pkgdir" # cleanup .git folders, any idea why they are in the package? find $pkgdir -type d -name ".git" | xargs rm -rf # link executables binaries="berks chef chef-apply chef-shell chef-solo chef-zero delivery fauxhai foodcritic kitchen knife ohai push-apply pushy-client pushy-service-manager rubocop cookstyle chef-client" mkdir -p $pkgdir/usr/bin for binary in $binaries; do ln -sf /opt/chefdk/bin/$binary $pkgdir/usr/bin/ || error_exit "Cannot link $binary to /usr/bin" done chown -Rh 0:0 $pkgdir chmod 755 $pkgdir/opt }