# Maintainer: Marc Paradise pkgname=chef-workstation pkgver=20.12.205 pkgrel=1 pkgdesc="Chef Workstation gives you everything you need to get started with Chef. Start scanning and configuring your environments today with InSpec and chef-run." arch=('x86_64') url="https://downloads.chef.io/chef-workstation/" license=('Apache') depends=() conflicts=(chef-dk chef chef-solo chef-client) source=('https://packages.chef.io/files/stable/chef-workstation/20.12.205/ubuntu/18.04/chef-workstation_20.12.205-1_amd64.deb') sha256sums=('e0b06ce6d471dfe7c48351c3b7b09b4866021efa2834036274d085b90c6fc7dd') package() { cd "$srcdir" bsdtar -xf data.tar.xz -C "$pkgdir" mkdir -p "$pkgdir/usr/bin" binaries="chef-run berks chef chef-apply chef-cli chef-client chef-shell chef-solo chef-vault cookstyle dco delivery inspec kitchen knife ohai push-apply pushy-client pushy-service-manager" for binary in $binaries; do ln -s "/opt/$pkgname/bin/$binary" "$pkgdir/usr/bin/" || error_exit "Cannot link $binary to /usr/bin" done chown -Rh 0:0 "$pkgdir" chmod -R 755 "$pkgdir/opt" }