Davvelsan

azure-functions-core-tools-bin 2.7.1846 PKGBUILD

Nov 14th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. # Maintainer: Jamie Magee <jamie dot magee at gmail dot com>
  2. _name=azure-functions-core-tools
  3. pkgname=$_name-bin
  4. pkgver=2.7.1846
  5. pkgrel=1
  6. pkgdesc="Command line tools for Azure Functions"
  7. arch=('x86_64')
  8. url="https://github.com/Azure/$_name"
  9. license=('MIT')
  10. provides=($_name)
  11. conflicts=($_name)
  12. optdepends=('dotnet-runtime: to install extensions') # https://github.com/Azure/azure-functions-core-tools/issues/367
  13. options=('staticlibs')
  14. source=("https://github.com/Azure/${_name}/releases/download/${pkgver}/Azure.Functions.Cli.linux-x64.${pkgver}.zip")
  15. sha256sums=('dc0ace5097df49d0537fabb0c58538676ddb32148155441387ec961fb5a74d9c')
  16.  
  17. package() {
  18.     install -dm 755 "${pkgdir}/usr/lib/${_name}/"
  19.     cp -r "${srcdir}/"* "${pkgdir}/usr/lib/${_name}"
  20.     install -m 755 "func" "${pkgdir}/usr/lib/${_name}/"
  21.  
  22.     install -dm 755 "${pkgdir}/usr/bin"
  23.     ln -s "/usr/lib/${_name}/func" "${pkgdir}/usr/bin/func"
  24. }
Add Comment
Please, Sign In to add comment