# Maintainer: Jamie Magee _name=azure-functions-core-tools pkgname=$_name-bin pkgver=2.4.419 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") sha256sums=('3e651b20e59a9f53c7546a315b25ea129ed8256840c8eea2d7a54c72b5c70481') package() { install -dm 755 "${pkgdir}/usr/lib/${_name}/" cp -r "${srcdir}/"* "${pkgdir}/usr/lib/${_name}" install -m 755 "func" "${pkgdir}/usr/lib/${_name}/" install -dm 755 "${pkgdir}/usr/bin" ln -s "/usr/lib/${_name}/func" "${pkgdir}/usr/bin/func" }