blob: e126af493f29f44cd7715f19cdf066b870e9ddaf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Simon Vikstrom <aur@devsn.se>
pkgname=chef-client
pkgver=16.7.61
pkgrel=1
_ubuntuver=xenial
pkgdesc="The Chef Client installation package includes everything you need to start converging your machines."
arch=('x86_64')
url="https://downloads.chef.io/chef-client/"
license=('Apache')
depends=()
conflicts=( chef chef-solo )
source=("https://packages.chef.io/files/stable/chef/${pkgver}/ubuntu/20.04/chef_${pkgver}-1_amd64.deb")
sha256sums=('75e4015665933712068b0b115a8c03721d5064153b43cf2063b168444ac0b666')
package() {
cd "$srcdir"
bsdtar -xf data.tar.xz -C "$pkgdir"
# link executables
binaries="chef-apply chef-shell knife chef-client chef-solo ohai"
mkdir -p $pkgdir/usr/bin
for binary in $binaries; do
ln -s /opt/chef/bin/$binary $pkgdir/usr/bin/ || error_exit "Cannot link $binary to /usr/bin"
done
chown -Rh 0:0 $pkgdir
chmod 755 $pkgdir/opt
}
|