# Maintainer: Jamie Magee _name=azure-functions-core-tools pkgname=$_name-bin pkgver=4.0.5700 # renovate: datasource=github-tags depName=Azure/azure-functions-core-tools pkgrel=1 pkgdesc="Command line tools for Azure Functions" arch=('x86_64') url="https://github.com/Azure/$_name" license=('MIT') provides=($_name) conflicts=($_name) optdepends=('dotnet-runtime: to install extensions') # https://github.com/Azure/azure-functions-core-tools/issues/367 options=('staticlibs') source=("https://github.com/Azure/${_name}/releases/download/${pkgver}/Azure.Functions.Cli.linux-x64.${pkgver}.zip") b2sums=('7e425881d793bb6885033da1cf03f5e48f656c621364ff0ab0fb3136f44730ae621236f3c71848790c3ff7a7e04e384b619068c1b5116b0d56cdc5ffdf79c4d5') package() { install -dm 755 "${pkgdir}/usr/lib/${_name}/" cp -r "${srcdir}/"* "${pkgdir}/usr/lib/${_name}" install -m 755 "func" "${pkgdir}/usr/lib/${_name}/" chmod a+x "${pkgdir}/usr/lib/${_name}/gozip" # https://github.com/Azure/azure-functions-core-tools/issues/1850 install -dm 755 "${pkgdir}/usr/bin" ln -s "/usr/lib/${_name}/func" "${pkgdir}/usr/bin/func" }