blob: 38d5a0db9a9e610a42ebaf23c52b5b7974335df6 (
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
|
# Maintainer: Jamie Magee <jamie dot magee at gmail dot com>
_name=azure-functions-core-tools
pkgname=$_name-bin
pkgver=4.0.7317 # 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=('196d78adb3f078ed9efd1ef31167ccf427ce49ecad2f984da3b0723eea357f4e2ec31685fc1097f0ba4678e495af58c61d067be29a6a3e23110b7bec0525b9cb')
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"
}
|