# Maintainer: Xuanrui Qi # Maintainer: Fabio 'Lolix' Loli # Maintainer: Jens Heremans # Contributor: Jonas Heinrich pkgname=azcopy pkgver=10.16.1 pkgrel=1 pkgdesc="A command-line utility designed for copying data to/from Microsoft Azure" arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy" license=('MIT') makedepends=('go' 'git') replaces=('azcopy-10') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Azure/azure-storage-azcopy/archive/v${pkgver}.tar.gz") sha512sums=('d74759a78157321f5bd16178e7bc084d70cc48b956c1d4b99c48b3e38da53974f3800d299103d3215057ab9593ff55e5173d6ee11ea9312866661f18da384dd5') prepare() { mkdir -p "${srcdir}/src/github.com/Azure" mv "${srcdir}/azure-storage-azcopy-${pkgver}" "${srcdir}/src/github.com/Azure/azure-storage-azcopy" } build() { cd "${srcdir}/src/github.com/Azure/azure-storage-azcopy" go build -buildmode=pie } package() { install -Dm755 "${srcdir}/src/github.com/Azure/azure-storage-azcopy/azure-storage-azcopy" "${pkgdir}/usr/bin/azcopy" install -Dm644 "${srcdir}/src/github.com/Azure/azure-storage-azcopy/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" }