1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
3 # Contributor: NOGISAKA Sadata <ngsksdt@gmail.com>
4 # Contributor: Bennett Piater <bennett at piater dot name>
9 pkgdesc='The official command line interface for the DigitalOcean API'
10 url='https://github.com/digitalocean/doctl'
15 source=(https://github.com/digitalocean/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
16 sha512sums=('2b1d4d6c2e63d880cfb6c8ffa712c510ea598b2b0d1c085e6ab32fe3faf9f7a8fe40116cb30e56d0d8f88ce28ce46c0f8412d06cff90722f422db02fe3a4ac45')
17 b2sums=('fd7f6e7fb650b1b265672dab2d4762cffbd44c5deadcf4a3e544ac1bcc33fdd5ac0d6f4c3a8f3a2f387946d4340c84ea692d18d6b095df7d375e1d9bd97af245')
20 cd ${pkgname}-${pkgver}
25 -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
30 cd ${pkgname}-${pkgver}
31 install -Dm 755 "${pkgname}" -t "${pkgdir}/usr/bin"
34 install -dm 755 "${pkgdir}/usr/share/bash-completion/completions" \
35 "${pkgdir}/usr/share/zsh/site-functions" \
36 "${pkgdir}/usr/share/fish/vendor_completions.d"
37 "${pkgdir}/usr/bin/${pkgname}" completion bash > "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
38 "${pkgdir}/usr/bin/${pkgname}" completion zsh > "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
39 "${pkgdir}/usr/bin/${pkgname}" completion fish > "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"